dsto.dfc.swing.forms
Class CustomizersTreeModel.Entry

java.lang.Object
  extended by dsto.dfc.util.BasicPropertyEventSource
      extended by dsto.dfc.swing.forms.CustomizersTreeModel.Entry
All Implemented Interfaces:
Iconic, Copyable, Disposable, JavaBean, PropertyEventSource, Serializable, Cloneable
Enclosing class:
CustomizersTreeModel

public static class CustomizersTreeModel.Entry
extends BasicPropertyEventSource
implements Iconic, Disposable

An entry in the tree model.

See Also:
Serialized Form

Field Summary
protected  Component customizer
           
protected  String description
           
protected  Icon icon
           
protected  Icon largeIcon
           
protected  String name
           
 
Fields inherited from interface dsto.dfc.swing.icons.Iconic
NULL_ICON
 
Constructor Summary
CustomizersTreeModel.Entry(String name, Icon icon, Icon largeIcon, String description, Component customizer)
          Create a new entry.
CustomizersTreeModel.Entry(String name, String description, Component customizer)
          Create a new entry.
 
Method Summary
 void dispose()
          Dispose of the object (unregister listeners, close open resources etc).
 Component getCustomizer()
           
 String getDescription()
           
 Icon getIcon()
          The small (16x16) icon for the object.
 Icon getLargeIcon()
          The large (32x32) icon.
 String getName()
          The human-readable name for the object.
 void setIcon(Icon newValue)
           
 void setLargeIcon(Icon newValue)
           
 void setName(String newValue)
           
 String toString()
           
 
Methods inherited from class dsto.dfc.util.BasicPropertyEventSource
addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeSource, removePropertyChangeListener, setPropertyChangeSource
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name

icon

protected Icon icon

largeIcon

protected Icon largeIcon

description

protected String description

customizer

protected Component customizer
Constructor Detail

CustomizersTreeModel.Entry

public CustomizersTreeModel.Entry(String name,
                                  String description,
                                  Component customizer)
Create a new entry.

Parameters:
name - The name that appears in the tree.
description - The descriptive text that will appear above the customizer. May be null.
customizer - The customizer component.

CustomizersTreeModel.Entry

public CustomizersTreeModel.Entry(String name,
                                  Icon icon,
                                  Icon largeIcon,
                                  String description,
                                  Component customizer)
Create a new entry.

Parameters:
name - The name that appears in the tree.
icon - The icon that appears in the tree.
largeIcon - The large icon that appears in the customizer title.
description - The descriptive text that will appear above the customizer. May be null.
customizer - The customizer component.
Method Detail

dispose

public void dispose()
Description copied from interface: Disposable
Dispose of the object (unregister listeners, close open resources etc). It should be safe to call this method more than once. Note for beans that support client event listeners: if there are listeners registered when this is called, this method should do nothing.

Specified by:
dispose in interface Disposable

getName

public String getName()
Description copied from interface: Iconic
The human-readable name for the object.

Specified by:
getName in interface Iconic

setName

public void setName(String newValue)

getIcon

public Icon getIcon()
Description copied from interface: Iconic
The small (16x16) icon for the object. May be null if no small icon is available.

Specified by:
getIcon in interface Iconic

setIcon

public void setIcon(Icon newValue)

getLargeIcon

public Icon getLargeIcon()
Description copied from interface: Iconic
The large (32x32) icon.

Specified by:
getLargeIcon in interface Iconic
Returns:
The large icon, or null if no large icon is available.

setLargeIcon

public void setLargeIcon(Icon newValue)

getDescription

public String getDescription()

getCustomizer

public Component getCustomizer()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008 Commonwealth of Australia