Package editor.tabpane
Class SimpleLabel
- java.lang.Object
-
- editor.tabpane.SimpleLabel
-
- All Implemented Interfaces:
IEditableLabel
,ILabel
public class SimpleLabel extends Object implements IEditableLabel
-
-
Constructor Summary
Constructors Constructor Description SimpleLabel(String strText, Icon icon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChangeListener(ChangeListener l)
String
getDisplayName()
A human readable name, typically displayed as a caption.Icon
getIcon(int iTypeFlags)
Supplies an icon for this labelvoid
removeChangeListener(ChangeListener l)
void
setDisplayName(String strName)
void
setIcon(Icon icon, int iTypeFlags)
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
Description copied from interface:ILabel
A human readable name, typically displayed as a caption.- Specified by:
getDisplayName
in interfaceILabel
-
setDisplayName
public void setDisplayName(String strName)
- Specified by:
setDisplayName
in interfaceIEditableLabel
-
getIcon
public Icon getIcon(int iTypeFlags)
Description copied from interface:ILabel
Supplies an icon for this label- Specified by:
getIcon
in interfaceILabel
- Parameters:
iTypeFlags
- one flag specifying the requested icon's type- Returns:
- an icon for this label
- See Also:
BeanInfo.ICON_COLOR_16x16
,BeanInfo.ICON_MONO_16x16
,BeanInfo.ICON_COLOR_32x32
,BeanInfo.ICON_MONO_32x32
,ILabel.OPEN
-
setIcon
public void setIcon(Icon icon, int iTypeFlags)
- Specified by:
setIcon
in interfaceIEditableLabel
-
addChangeListener
public void addChangeListener(ChangeListener l)
- Specified by:
addChangeListener
in interfaceIEditableLabel
-
removeChangeListener
public void removeChangeListener(ChangeListener l)
- Specified by:
removeChangeListener
in interfaceIEditableLabel
-
-