|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--com.klg.jclass.util.swing.JCSortableTable.SortableHeaderRenderer | +--com.klg.jclass.swing.JCTreeTable.SwitchRenderer
Renderer used to draw the tree<-->table switch icon in the tree column header.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
protected Icon |
icon
|
protected boolean |
initialized
|
protected JButton |
switchButton
|
protected int |
switchPolicy
|
Fields inherited from class com.klg.jclass.util.swing.JCSortableTable.SortableHeaderRenderer |
brace, currentLayoutLeft, label, sortButton, sortIcon |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
JCTreeTable.SwitchRenderer()
Constructor. |
|
JCTreeTable.SwitchRenderer(int switchPolicy)
Constructor that specifies switchPolicy. |
|
JCTreeTable.SwitchRenderer(int switchPolicy,
boolean orientationLeft)
Constructor that specifies switchPolicy and whether the renderer is oriented leftToRight. |
Method Summary | |
protected JButton |
getSwitchButton()
Return the switch button. |
void |
reLayout(boolean orientationLeft)
Remove all components and add the components back in based on their availability and the table's component orientation. |
protected void |
setProperties(JTable table)
Set properties on the header renderer component based on the table header. |
void |
setSwitchIcon(Icon icon)
Set the icon to switch between TREE and TABLE
views. |
void |
setSwitchPolicy(int switchPolicy)
Sets the switchPolicy variable which determines whether or
not to allow view switching. |
void |
setView(int view)
Sets the view for this renderer. |
Methods inherited from class com.klg.jclass.util.swing.JCSortableTable.SortableHeaderRenderer |
getTableCellRendererComponent, isCurrentLayoutLeft, setSortIcon |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.table.TableCellRenderer |
getTableCellRendererComponent |
Methods inherited from interface com.klg.jclass.util.swing.JCSortableTable.SortableColumnHeader |
setSortIcon |
Field Detail |
protected int switchPolicy
protected JButton switchButton
protected Icon icon
protected boolean initialized
Constructor Detail |
public JCTreeTable.SwitchRenderer()
public JCTreeTable.SwitchRenderer(int switchPolicy)
switchPolicy
- The switchPolicy to use.public JCTreeTable.SwitchRenderer(int switchPolicy, boolean orientationLeft)
switchPolicy
- The switchPolicy to use.orientationLeft
- If true, the renderer is oriented leftToRight.Method Detail |
public void setView(int view)
TREE
or
TABLE
.
view
- The new view for this renderer; must be one of
TREE
or TABLE
.public void setSwitchPolicy(int switchPolicy)
switchPolicy
variable which determines whether or
not to allow view switching.
switchPolicy
- The new switchPolicypublic void setSwitchIcon(Icon icon)
TREE
and TABLE
views.
icon
- The new switch icon. Must not be null.protected JButton getSwitchButton()
protected void setProperties(JTable table)
setProperties
in class JCSortableTable.SortableHeaderRenderer
table
- The table whose header is used to set the properties.public void reLayout(boolean orientationLeft)
reLayout
in class JCSortableTable.SortableHeaderRenderer
orientationLeft
- If true, layout in left to right orientation.
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |