|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.table.ColumnChooser
public class ColumnChooser
ColumnChooser is a class containing the dialog for managing the columns of a table.
Field Summary | |
---|---|
protected boolean |
allowEditing
determines whether column names can be edited |
protected JButton |
cancelButton
the button for rejecting changes in the column dialog |
protected JDialog |
dialog
the column dialog |
protected JButton |
groupButton
the button for grouping columns |
protected JButton |
hideButton
the button for hiding columns |
protected JButton |
moveDownButton
the button for moving down columns |
protected JButton |
moveUpButton
the button for moving up columns |
protected JButton |
okButton
the button for accepting changes in the column dialog |
protected JPanel |
panel
the dialog's panel |
protected JLabel |
prefaceLabel
the label describing the column dialog |
protected JButton |
resetButton
the button for resetting changes in the column dialog |
protected JScrollPane |
scrollPane
the table's scrollpane |
protected JCheckBox |
selectCheckBox
the check box for selecting/deselecting all columns |
protected JButton |
showButton
the button for showing columns |
protected boolean |
showGroup
determines whether the group buttons will be shown |
protected boolean |
showMove
determines whether the move buttons will be shown |
protected TreeTable |
table
the table holding the columns |
protected JLabel |
tableLabel
the label describing the table |
protected JButton |
unGroupButton
the button for ungrouping columns |
protected JTextField |
widthField
the textfield for setting the column width |
protected JLabel |
widthLabel
the label describing the pixel width text field |
Constructor Summary | |
---|---|
ColumnChooser()
Creates a ColumnChooser. |
Method Summary | |
---|---|
protected JPanel |
createButtonPanel()
Creates the panel that would be holding the buttons. |
protected JDialog |
createDialog(TableAssistant assistant)
Creates the column dialog. |
protected JPanel |
createMainPanel()
Creates the dialog's main panel. |
protected JPanel |
createPanel()
Creates the dialog's panel. |
boolean |
getAllowEditing()
Determines whether column names can be edited. |
JButton |
getCancelButton()
Retrieves the button for rejecting changes in the column dialog. |
JDialog |
getDialog(TableAssistant assistant)
Retrieves the column dialog. |
JButton |
getGroupButton()
Retrieves the button for grouping columns. |
JButton |
getHideButton()
Retrieves the button for hiding columns. |
JButton |
getMoveDownButton()
Retrieves the button for moving down columns. |
JButton |
getMoveUpButton()
Retrieves the button for moving up columns. |
JButton |
getOkButton()
Retrieves the button for accepting changes in the column dialog. |
JPanel |
getPanel()
Retrieves the dialog's panel. |
JLabel |
getPrefaceLabel()
Retrieves the label describing the column dialog. |
JButton |
getResetButton()
Retrieves the button for resetting changes in the column dialog. |
JScrollPane |
getScrollPane()
Retrieves the table's scrollpane. |
JCheckBox |
getSelectCheckBox()
Retrieves the check box for selecting/deselecting all columns. |
JButton |
getShowButton()
Retrieves the button for showing columns. |
boolean |
getShowGroup()
Determines whether the group buttons will be shown. |
boolean |
getShowMove()
Determines whether the move buttons will be shown. |
TreeTable |
getTable()
Retrieves the column's table. |
JLabel |
getTableLabel()
Retrieves the label describing the table. |
JButton |
getUnGroupButton()
Retrieves the button for ungrouping columns. |
JTextField |
getWidthField()
Retrieves the textfield for setting the column width. |
JLabel |
getWidthLabel()
Retrieves the label describing the pixel width text field. |
protected void |
initComponents()
Initializes the column chooser by creating the UI components that are needed. |
protected void |
install()
Installs the chooser by creating components, listeners and several key actions. |
protected void |
installActions()
Installs key actions on the UI components. |
protected void |
installListeners()
Installs listeners on the UI components. |
void |
setAllowEditing(boolean allowEditing)
Determines whether column names can be edited. |
void |
setShowGroup(boolean showGroup)
Determines whether the group buttons will be shown. |
void |
setShowMove(boolean showMove)
Determines whether the move buttons will be shown. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JPanel panel
protected JDialog dialog
protected JScrollPane scrollPane
protected TreeTable table
protected JButton moveUpButton
protected JButton moveDownButton
protected JButton showButton
protected JButton hideButton
protected JTextField widthField
protected JButton groupButton
protected JButton unGroupButton
protected JButton okButton
protected JButton cancelButton
protected JButton resetButton
protected JLabel prefaceLabel
protected JLabel tableLabel
protected JLabel widthLabel
protected JCheckBox selectCheckBox
protected boolean showGroup
protected boolean showMove
protected boolean allowEditing
Constructor Detail |
---|
public ColumnChooser()
Method Detail |
---|
protected JPanel createButtonPanel()
protected JDialog createDialog(TableAssistant assistant)
assistant
- the table assistant with which a dialog is associated
protected JPanel createMainPanel()
protected JPanel createPanel()
public boolean getAllowEditing()
public JButton getCancelButton()
public JDialog getDialog(TableAssistant assistant)
assistant
- the table assistant with which a dialog is associated
public JButton getGroupButton()
public JButton getHideButton()
public JButton getMoveDownButton()
public JButton getMoveUpButton()
public JButton getOkButton()
public JPanel getPanel()
public JLabel getPrefaceLabel()
public JButton getResetButton()
public JScrollPane getScrollPane()
public JCheckBox getSelectCheckBox()
public JButton getShowButton()
public boolean getShowGroup()
public boolean getShowMove()
public TreeTable getTable()
public JLabel getTableLabel()
public JButton getUnGroupButton()
public JTextField getWidthField()
public JLabel getWidthLabel()
protected void initComponents()
protected void install()
protected void installActions()
protected void installListeners()
public void setAllowEditing(boolean allowEditing)
allowEditing
- true if column names can be edited, false otherwisepublic void setShowGroup(boolean showGroup)
showGroup
- true if group buttons are shown, false otherwisepublic void setShowMove(boolean showMove)
showMove
- true if move buttons are shown, false otherwise
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |