com.sas.swing.visuals
Class SwingCustomizerPanel

com.sas.swing.visuals.SwingCustomizerPanel
All Implemented Interfaces:
com.sas.beans.CustomizerClosingInterface, LayoutConstants, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.Customizer, java.io.Serializable, javax.accessibility.Accessible
Direct Known Subclasses:
DisplayTransformCustomizerPanel, JComponentCustomizerPanel, JComponentModelCustomizerPanel, RangeTypesViewPanel, ResourceLocatorInterfaceCustomizerPanel

public abstract class SwingCustomizerPanel
implements com.sas.beans.Customizer, com.sas.beans.CustomizerClosingInterface, LayoutConstants

CustomizerPanel is an abstract class from which each component's customizer tabs should derive from. It provides PropertyChangeListener support and a place to store a reference to the object being customized.

See Also:
Serialized Form

Field Summary
protected  java.lang.Object bean
           
protected  java.lang.String tabTitle
           
 
Fields inherited from interface com.sas.swing.visuals.util.LayoutConstants
DOTS_BUTTON_INSETS, EMPTY_INSETS, HGAP, HMARGIN, INDENTED_BORDER, TAB_BORDER, TEXTFIELD_INSETS, VGAP, VMARGIN
 
Constructor Summary
SwingCustomizerPanel()
          Constructor used to pass the tab name up to the superclass.
SwingCustomizerPanel(java.lang.String tabName)
          Constructor used to pass the tab name up to the superclass.
 
Method Summary
 void customizerClosing()
          customizerClosing() is called when the customizer for a component is closed.
 java.lang.Object getObject()
          Returns the Object being customized.
 java.lang.String getTabTitle()
          Returns the tab's title.
 void setObject(java.lang.Object bean)
          Sets the Object being customized.
 void setTabTitle(java.lang.String tabName)
          Sets the Tab title.
 

Field Detail

bean

protected java.lang.Object bean

tabTitle

protected java.lang.String tabTitle
Constructor Detail

SwingCustomizerPanel

public SwingCustomizerPanel(java.lang.String tabName)
Constructor used to pass the tab name up to the superclass.


SwingCustomizerPanel

public SwingCustomizerPanel()
Constructor used to pass the tab name up to the superclass.

Method Detail

customizerClosing

public void customizerClosing()
customizerClosing() is called when the customizer for a component is closed. customizerClosing() of the customizerView calls customizerClosing() on each of the panels in the CustomizerView which extend CustomizerPanel.

customizerClosing() should "unhook" the bean from the customizer by removing any event listeners the panel added to the bean.

Subclasses should call super in case we add some functionality to this method in the future.

Specified by:
customizerClosing in interface com.sas.beans.CustomizerClosingInterface

getObject

public java.lang.Object getObject()
Returns the Object being customized.

See Also:
setObject(java.lang.Object)

setObject

public void setObject(java.lang.Object bean)
Sets the Object being customized.

Specified by:
setObject in interface java.beans.Customizer
Parameters:
bean - the Object being customized.
See Also:
Customizer.setObject(java.lang.Object)

getTabTitle

public java.lang.String getTabTitle()
Returns the tab's title.

See Also:
setTabTitle(java.lang.String)

setTabTitle

public void setTabTitle(java.lang.String tabName)
Sets the Tab title.

Parameters:
tabName - the title for the tab.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.