com.sas.swing.visuals.tableview
Class OriginComponent

com.sas.swing.visuals.tableview.OriginComponent
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable
Direct Known Subclasses:
OLAPOriginComponent

public class OriginComponent

See Also:
Serialized Form

Field Summary
protected  javax.swing.table.TableCellRenderer renderer
           
protected  TableView table
           
 
Constructor Summary
OriginComponent()
          Default constructor, sets the TableView to null.
OriginComponent(TableView table)
          Constructors the OriginComponent and sets the TableView to the table.
 
Method Summary
protected  javax.swing.Action createDefaultAction()
          Returns a default action for the OriginComponent.
protected  javax.swing.table.TableCellRenderer createDefaultRenderer()
          Returns a default renderer to be used for the OriginComponent
 javax.swing.Action getAction()
           
 java.lang.Object getHeaderValue()
           
 javax.swing.table.TableCellRenderer getRenderer()
           
 TableView getTable()
          Returns the TableView associated with this component.
 OriginComponentUI getUI()
          Returns the L&F object that renders this component.
 java.lang.String getUIClassID()
          Returns the suffix used to construct the name of the look and feel (L&F) class used to render this component.
 void initializeLocalVars()
          Initializes the OriginComponent's values.
 void setAction(javax.swing.Action newAction)
           
 void setHeaderValue(java.lang.Object newValue)
           
 void setRenderer(javax.swing.table.TableCellRenderer newRenderer)
           
 void setTable(TableView table)
          Sets the TableView associated with the OriginComponent to the given TableView.
 void setUI(OriginComponentUI ui)
          Sets the L&F object that renders this component and repaints.
 void updateUI()
          Notification from the javax.swing.UIManager that the look and feel (L&F) has changed.
 

Field Detail

table

protected TableView table

renderer

protected javax.swing.table.TableCellRenderer renderer
Constructor Detail

OriginComponent

public OriginComponent()
Default constructor, sets the TableView to null.


OriginComponent

public OriginComponent(TableView table)
Constructors the OriginComponent and sets the TableView to the table.

Parameters:
table - The TableView associated with this OriginComponent.
Method Detail

initializeLocalVars

public void initializeLocalVars()
Initializes the OriginComponent's values.


setTable

public void setTable(TableView table)
Sets the TableView associated with the OriginComponent to the given TableView.

Parameters:
table - the new TableView associted with this component.
See Also:
getTable()

getTable

public TableView getTable()
Returns the TableView associated with this component.

Returns:
the associated TableView
See Also:
setTable(TableView)

getRenderer

public javax.swing.table.TableCellRenderer getRenderer()

setRenderer

public void setRenderer(javax.swing.table.TableCellRenderer newRenderer)

getHeaderValue

public java.lang.Object getHeaderValue()

setHeaderValue

public void setHeaderValue(java.lang.Object newValue)

createDefaultRenderer

protected javax.swing.table.TableCellRenderer createDefaultRenderer()
Returns a default renderer to be used for the OriginComponent

Parameters:
default - renderer to be used

getAction

public javax.swing.Action getAction()

setAction

public void setAction(javax.swing.Action newAction)

createDefaultAction

protected javax.swing.Action createDefaultAction()
Returns a default action for the OriginComponent.

Returns:
the default action

getUI

public OriginComponentUI getUI()
Returns the L&F object that renders this component.

Returns:
the OriginComponentUI object that renders this component

setUI

public void setUI(OriginComponentUI ui)
Sets the L&F object that renders this component and repaints.

Parameters:
ui - the OriginComponentUI L&F object
See Also:
UIDefaults.getUI(javax.swing.JComponent)

updateUI

public void updateUI()
Notification from the javax.swing.UIManager that the look and feel (L&F) has changed. Replaces the current UI object with the latest version from the javax.swing.UIManager.

Overrides:
updateUI in class javax.swing.JComponent
See Also:
JComponent.updateUI()

getUIClassID

public java.lang.String getUIClassID()
Returns the suffix used to construct the name of the look and feel (L&F) class used to render this component.

Overrides:
getUIClassID in class javax.swing.JComponent
Returns:
the string "OriginComponentUI"
See Also:
JComponent.getUIClassID(), UIDefaults.getUI(javax.swing.JComponent)



Copyright © 2009 SAS Institute Inc. All Rights Reserved.