|
JIDE 3.5.15 | ||||||||
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 java.awt.Window java.awt.Dialog javax.swing.JDialog com.jidesoft.dialog.StandardDialog com.jidesoft.grid.TableColumnChooserDialog
public class TableColumnChooserDialog
TableColumnChooserDialog is a dialog to allow user to select the columns to be displayed in a JTable using a CheckBoxList.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jidesoft.dialog.StandardDialog |
---|
StandardDialog.DefaultStandardDialogPane |
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected String[] |
_descriptions
|
protected DualList |
_dualList
|
protected int[] |
_fixedColumns
|
protected boolean[] |
_hidableColumns
|
protected List<Integer> |
_hiddenColumns
|
protected JLabel |
_label
|
protected CheckBoxList |
_list
|
protected JTable |
_table
|
protected CheckBoxTree |
_tree
|
Fields inherited from class com.jidesoft.dialog.StandardDialog |
---|
_propertyChangeListener, _standardDialogPane, RESULT_AFFIRMED, RESULT_CANCELLED |
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface com.jidesoft.dialog.ButtonNames |
---|
APPLY, BACK, BROWSE, CANCEL, CLEAR, CLOSE, DETAILS, EDIT, EXIT, FIND, FIND_NEXT, FINISH, FORWARD, HELP, NEW, NEXT, NO, OK, OPEN, PRINT, REPLACE, RESET, RETRY, RUN, SAVE, SAVE_AS, STOP, YES |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
TableColumnChooserDialog(Dialog owner,
String title,
JTable table)
|
|
TableColumnChooserDialog(Frame owner,
String title,
JTable table)
|
Method Summary | |
---|---|
JComponent |
createBannerPanel()
Subclasses should implement this method to create the banner panel. |
ButtonPanel |
createButtonPanel()
Subclasses should implement this method to create the button panel. |
JComponent |
createContentPanel()
Subclasses should implement this method to create the content panel. |
String[] |
getDescriptions()
Gets the descriptions of the table columns. |
int[] |
getFixedColumns()
Gets the fixed columns. |
boolean[] |
getHidableColumns()
Gets the columns that can be hidden. |
List<Integer> |
getHiddenColumns()
Gets the hidden columns. |
protected String |
getName(int index)
|
protected Action |
getOkAction()
Gets the OK Action for the OK button. |
protected String |
getResourceString(String key)
Gets the localized string from resource bundle. |
int[] |
getSelectedColumns()
Gets the selected column indices. |
protected boolean |
isColumnVisible(int index)
|
void |
setDescriptions(String[] descriptions)
Sets the descriptions of the table columns. |
void |
setFixedColumns(int[] fixedColumns)
Sets the fixed columns. |
void |
setHidableColumns(boolean[] hidableColumns)
Sets the columns that can be hidden. |
void |
setHiddenColumns(int[] hiddenColumns)
Sets the hidden columns. |
protected void |
showOrHideColumns(int[] selectedModelIndices)
|
Methods inherited from class com.jidesoft.dialog.StandardDialog |
---|
createOKCancelButtonPanel, createStandardDialogPane, getBannerPanel, getButtonPanel, getContentPanel, getDefaultAction, getDefaultCancelAction, getDialogResult, getInitFocusedComponent, getStandardDialogPane, initComponents, initialize, pack, setDefaultAction, setDefaultCancelAction, setDialogResult, setInitFocusedComponent, show |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, toBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected JTable _table
protected CheckBoxList _list
protected CheckBoxTree _tree
protected DualList _dualList
protected boolean[] _hidableColumns
protected String[] _descriptions
protected int[] _fixedColumns
protected List<Integer> _hiddenColumns
protected JLabel _label
Constructor Detail |
---|
public TableColumnChooserDialog(Dialog owner, String title, JTable table) throws HeadlessException
HeadlessException
public TableColumnChooserDialog(Frame owner, String title, JTable table) throws HeadlessException
HeadlessException
Method Detail |
---|
public JComponent createBannerPanel()
StandardDialog
BannerPanel
If subclass doesn't want to have a banner panel, just return null.
createBannerPanel
in class StandardDialog
public JComponent createContentPanel()
StandardDialog
createContentPanel
in class StandardDialog
protected String getResourceString(String key)
key
- the resource string key
public ButtonPanel createButtonPanel()
StandardDialog
ButtonPanel
.
createButtonPanel
in class StandardDialog
ButtonPanel
protected Action getOkAction()
public int[] getSelectedColumns()
public boolean[] getHidableColumns()
public void setHidableColumns(boolean[] hidableColumns)
hidableColumns
- the hidable column arraypublic int[] getFixedColumns()
public void setFixedColumns(int[] fixedColumns)
fixedColumns
- the fixed columns.public List<Integer> getHiddenColumns()
public void setHiddenColumns(int[] hiddenColumns)
hiddenColumns
- the hidden columns.public String[] getDescriptions()
public void setDescriptions(String[] descriptions)
descriptions
- the descriptions of the table columns.protected String getName(int index)
protected boolean isColumnVisible(int index)
protected void showOrHideColumns(int[] selectedModelIndices)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |