|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
adams.gui.core.BasePanel
adams.gui.tools.spreadsheetviewer.SortPanel
public class SortPanel
Panel that allows users to sort a spreadsheet over an arbitrary number of columns.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| 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 JButton |
m_ButtonNew
the button for a new sort definition. |
protected List<String> |
m_ColumnNames
the column names. |
protected GridLayout |
m_Layout
the gridlayout in use. |
protected BasePanel |
m_PanelButtons
the panel for the buttons. |
protected BasePanel |
m_PanelDefinitions
the panel holding the defintion panels. |
protected List<SortDefinitionPanel> |
m_Panels
the list of definitions to use. |
protected SpreadSheet |
m_Sheet
the spreadsheet that forms the basis for the sorting. |
protected HashSet<SortSetupListener> |
m_SortSetupListeners
the listeners for changes in the setup. |
| 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 | |
|---|---|
SortPanel()
|
|
| Method Summary | |
|---|---|
void |
addDefinition()
Adds a new definition. |
void |
addSortSetupListener(SortSetupListener l)
Adds the specified listener. |
protected void |
finishInit()
Finishes the initialization. |
List<String> |
getColumnNames()
Returns the column names in use. |
RowComparator |
getComparator()
Returns a comparator for sorting the spreadsheet. |
SpreadSheet |
getSpreadSheet()
Returns the spreadsheet to use. |
protected void |
initGUI()
Initializes the widgets. |
protected void |
initialize()
Initializes the members. |
boolean |
isValidSetup()
Checks whether the setup is valid, i.e., no name used twice, at least one sorting definition. |
void |
notifySortSetupListeners(SortSetupEvent e)
Notifies all listeners with the specified event. |
void |
removeDefinition(SortDefinitionPanel panel)
Removes the panel from the list of sort definitions. |
void |
removeSortSetupListener(SortSetupListener l)
Removes the specified listener. |
void |
reset()
Removes all sort definition panels. |
void |
setSpreadSheet(SpreadSheet value)
Sets the spreadsheet to use. |
protected void |
update()
Updates the display. |
| Methods inherited from class adams.gui.core.BasePanel |
|---|
afterHide, afterShow, beforeHide, beforeShow, closeParent, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, main, setParentTitle, setVisible |
| 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 |
| Field Detail |
|---|
protected SpreadSheet m_Sheet
protected List<SortDefinitionPanel> m_Panels
protected GridLayout m_Layout
protected BasePanel m_PanelDefinitions
protected BasePanel m_PanelButtons
protected JButton m_ButtonNew
protected List<String> m_ColumnNames
protected HashSet<SortSetupListener> m_SortSetupListeners
| Constructor Detail |
|---|
public SortPanel()
| Method Detail |
|---|
protected void initialize()
initialize in class BasePanelprotected void initGUI()
initGUI in class BasePanelprotected void finishInit()
finishInit in class BasePanelpublic void setSpreadSheet(SpreadSheet value)
value - the spreadsheet to usepublic SpreadSheet getSpreadSheet()
public List<String> getColumnNames()
public void addDefinition()
public void removeDefinition(SortDefinitionPanel panel)
panel - the panel to removepublic void reset()
protected void update()
public boolean isValidSetup()
public RowComparator getComparator()
public void addSortSetupListener(SortSetupListener l)
l - the listener to addpublic void removeSortSetupListener(SortSetupListener l)
l - the listener to removepublic void notifySortSetupListeners(SortSetupEvent e)
e - the event to send
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||