public abstract class MenuNode extends java.lang.Object implements java.lang.Comparable<MenuNode>, HasProperties
Modifier and Type | Class and Description |
---|---|
static class |
MenuNode.FontStyle |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_FONT_NAME |
static int |
DEFAULT_FONT_SIZE |
static MenuNode.FontStyle |
DEFAULT_FONT_STYLE |
static java.lang.String |
DEFAULT_ICON |
static java.lang.String |
DEFAULT_TITLE |
static java.awt.Font |
myDefaultFont |
static java.awt.Font |
myMenuDefaultFont |
static PropertyList |
myProps |
Constructor and Description |
---|
MenuNode() |
MenuNode(java.lang.String title) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(MenuNode o) |
boolean |
equals(MenuNode other) |
PropertyList |
getAllPropertyInfo()
Returns a list giving static information about all properties exported by
this object.
|
abstract java.awt.Component |
getComponent() |
java.awt.Font |
getFont() |
java.lang.String |
getFontName() |
int |
getFontSize() |
int |
getFontSpec() |
MenuNode.FontStyle |
getFontStyle() |
static MenuNode.FontStyle |
getFontStyle(java.awt.Font font) |
java.lang.String |
getIcon() |
int |
getIndex() |
MenuEntry |
getParent() |
Property |
getProperty(java.lang.String name)
Returns a property associated with a specified path name.
|
java.lang.String |
getTitle() |
ModelScriptMenuParser.MenuType |
getType() |
int |
numChildren() |
void |
set(MenuNode node) |
void |
setFont(java.awt.Font font) |
void |
setFontName(java.lang.String fontName) |
void |
setFontSize(int size) |
void |
setFontSpec(int spec) |
void |
setFontStyle(MenuNode.FontStyle style) |
void |
setIcon(java.lang.String icon) |
void |
setTitle(java.lang.String title) |
boolean |
titleIsEmpty() |
java.lang.String |
toString() |
abstract java.awt.Component |
updateComponent(ModelScriptMenu modelMenu) |
public static final java.lang.String DEFAULT_TITLE
public static final java.lang.String DEFAULT_ICON
public static java.awt.Font myMenuDefaultFont
public static java.awt.Font myDefaultFont
public static final java.lang.String DEFAULT_FONT_NAME
public static final MenuNode.FontStyle DEFAULT_FONT_STYLE
public static final int DEFAULT_FONT_SIZE
public static PropertyList myProps
public PropertyList getAllPropertyInfo()
HasProperties
getAllPropertyInfo
in interface HasProperties
public Property getProperty(java.lang.String name)
HasProperties
.
' characters. A sub-property
exists if the value of a property is itself an object which exports
properties. It is only possible to obtain a sub-property handle if each of
its ancestor properties exports their values by reference.getProperty
in interface HasProperties
name
- name of the desired property or sub-propertypublic java.lang.String getTitle()
public boolean titleIsEmpty()
public void setTitle(java.lang.String title)
public java.lang.String getIcon()
public void setIcon(java.lang.String icon)
public java.lang.String getFontName()
public void setFontName(java.lang.String fontName)
public MenuNode.FontStyle getFontStyle()
public static MenuNode.FontStyle getFontStyle(java.awt.Font font)
public void setFontStyle(MenuNode.FontStyle style)
public int getFontSize()
public void setFontSize(int size)
public ModelScriptMenuParser.MenuType getType()
public boolean equals(MenuNode other)
public int compareTo(MenuNode o)
compareTo
in interface java.lang.Comparable<MenuNode>
public void setFont(java.awt.Font font)
public java.awt.Font getFont()
public void setFontSpec(int spec)
public int getFontSpec()
public java.lang.String toString()
toString
in class java.lang.Object
public MenuEntry getParent()
public int getIndex()
public void set(MenuNode node)
public int numChildren()
public abstract java.awt.Component getComponent()
public abstract java.awt.Component updateComponent(ModelScriptMenu modelMenu)