|
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 javax.swing.JComponent javax.swing.JPanel com.jidesoft.grid.SortOrderEditor
public class SortOrderEditor
An editor to customize the sort order which can be used in SortableTableModel
. It has an interface to
create two things. The first thing is the sort order - ascending or descending. The second one is the
ComparatorContext
. Different Comparator
s will be used depending on the
ComparatorContext
.
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 |
---|
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 | |
---|---|
SortOrderEditor()
Creates a SortItemEditor. |
|
SortOrderEditor(Class<?> type)
Creates a SortOrderEditor with a specified type. |
Method Summary | |
---|---|
protected JComboBox |
createContextComboBox(Class<?> type)
Creates a combobox based on the data type. |
ComparatorContext |
getComparatorContext()
Gets the comparator context. |
Class<?> |
getType()
Gets the type. |
protected void |
initComponents()
|
boolean |
isAscending()
Gets the isAscending value. |
void |
setAscending(boolean ascending)
Sets the ascending flag. |
void |
setComparatorContext(ComparatorContext comparatorContext)
Sets the ComparatorContext. |
void |
setType(Class<?> type)
Sets the type. |
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 |
Constructor Detail |
---|
public SortOrderEditor()
public SortOrderEditor(Class<?> type)
type
- the type.Method Detail |
---|
public Class<?> getType()
public void setType(Class<?> type)
type
- the type.protected void initComponents()
protected JComboBox createContextComboBox(Class<?> type)
type
- the data type.
public boolean isAscending()
public void setAscending(boolean ascending)
ascending
- true or false.public ComparatorContext getComparatorContext()
SortableTableModel.setColumnComparatorContextProvider(com.jidesoft.grid.SortableTableModel.ColumnComparatorContextProvider)
to customize how the table is sorted.
public void setComparatorContext(ComparatorContext comparatorContext)
comparatorContext
- a new ComparatorContext.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |