addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
canExtend
public boolean canExtend(FaceId faceId)
getAccelerator
public KeyStroke getAccelerator()
getClientProperty
public String getClientProperty(String name)
getClientProperty
public String getClientProperty(String name,
String defaultValue)
getClientPropertyNames
public String[] getClientPropertyNames()
getDescription
public String getDescription()
getDisabledIcon
public Icon getDisabledIcon()
getExtendsId
public FaceId getExtendsId()
getHorizontalTextPosition
public Integer getHorizontalTextPosition()
Gets the horizontal text position of this face.
This attribute will be ignored if the
verticalPosition
has
been configured as the vertical position on button is only useful if the horizontal position is
set to
SwingConstants.CENTER
.
- the horizontal text position of the face.
getIcon
public Icon getIcon()
getIconTextGap
public Integer getIconTextGap()
Gets the vertical text position of this face. If it hasn't been configured, then
null is returned.
- the icon text gap of the face or null if it hasn't been configured.
getLongDescription
public String getLongDescription()
getMnemonic
public Integer getMnemonic()
getMnemonicIndex
public Integer getMnemonicIndex()
getName
public String getName()
getPressedIcon
public Icon getPressedIcon()
getRolloverIcon
public Icon getRolloverIcon()
getRolloverSelectedIcon
public Icon getRolloverSelectedIcon()
getSelectedIcon
public Icon getSelectedIcon()
getText
public String getText()
Returns the Test as displayed by attachments of this command. This is the value that actually
appears on the button or menu item.
- the text this face displays.
getVerticalTextPosition
public Integer getVerticalTextPosition()
Gets the vertical text position of this face.
Configuring this value will result in the
horizontalTextPosition
being ignored.
- the vertical text position of the face.
isAcceleratorInherited
public boolean isAcceleratorInherited()
isDisabledIconInherited
public boolean isDisabledIconInherited()
isIconInherited
public boolean isIconInherited()
isIconTextGapInherited
public boolean isIconTextGapInherited()
isMenuTooltipEnabled
public boolean isMenuTooltipEnabled()
isNameEqualTo
public boolean isNameEqualTo(String name)
Tests if this face's name is the same as the specified name.
name
- the name to compare with this face's name.
- true if the names are the same, false otherwise.
isPressedIconInherited
public boolean isPressedIconInherited()
isRolloverIconInherited
public boolean isRolloverIconInherited()
isRolloverSelectedIconInherited
public boolean isRolloverSelectedIconInherited()
isSelectedIconInherited
public boolean isSelectedIconInherited()
notifyMenuTooltipDefaultChanged
protected void notifyMenuTooltipDefaultChanged(boolean newValue)
putClientProperty
public void putClientProperty(String name,
String value)
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
setAccelerator
public void setAccelerator(KeyStroke accelerator)
setAcceleratorInherited
public void setAcceleratorInherited(boolean acceleratorInherited)
setDescription
public void setDescription(String string)
setDisabledIcon
public void setDisabledIcon(Icon icon)
setDisabledIconInherited
public void setDisabledIconInherited(boolean inherited)
setExtendsId
public void setExtendsId(FaceId extendsId)
setHorizontalTextPosition
public void setHorizontalTextPosition(Integer position)
Sets the horizontal position for the text on this face. If it null, then the
default for the look and feel will be used.
position
- the horizontal position of the text.
setIcon
public void setIcon(Icon icon)
setIconInherited
public void setIconInherited(boolean iconInherited)
setIconTextGap
public void setIconTextGap(Integer gap)
setIconTextGapInherited
public void setIconTextGapInherited(boolean inherited)
setLongDescription
public void setLongDescription(String string)
setMenuTooltipEnabled
public void setMenuTooltipEnabled(boolean menuTooltipEnabled)
setMnemonic
public void setMnemonic(Integer mnemonic)
setMnemonicIndex
public void setMnemonicIndex(Integer mnemonicIndex)
Sets the mnemonic to use based on it character index in the string.
setPressedIcon
public void setPressedIcon(Icon icon)
setPressedIconInherited
public void setPressedIconInherited(boolean inherited)
setRolloverIcon
public void setRolloverIcon(Icon icon)
setRolloverIconInherited
public void setRolloverIconInherited(boolean inherited)
setRolloverSelectedIcon
public void setRolloverSelectedIcon(Icon icon)
setRolloverSelectedIconInherited
public void setRolloverSelectedIconInherited(boolean inherited)
setSelectedIcon
public void setSelectedIcon(Icon selectedIcon)
setSelectedIconInherited
public void setSelectedIconInherited(boolean selectedIconInherited)
setText
public void setText(String string)
Sets the text for the face. This methods interprets the '_' character as a mnemonic marker. If present
this method will automatically update the mnemonic settings of the face as well.
string
- the new string for the face.
setTextInherited
public void setTextInherited(boolean textInherited)
setVerticalTextPosition
public void setVerticalTextPosition(Integer position)
Sets the vertical position for the text on this face. If it null, then the
default for the look and feel will be used.
position
- the vertical position of the text.
toString
public String toString()