|
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.table.beans.TablePropertyEditor
This editor provides the framework to edit a selection in a table. Sub-class this class to edit specific property.
Nested Class Summary | |
protected class |
TablePropertyEditor.GroupPanel
|
protected static class |
TablePropertyEditor.RangeValue
Class internal to TablePropertyEditor that manages a range: start position and end position. |
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 static String |
ALL
|
protected static String |
ALL_CELLS
|
protected static String |
ALLCELLS
|
protected JButton |
buttonResetAll
|
protected JComboBox |
choiceColumn
|
protected JComboBox |
choiceRow
|
protected static com.klg.jclass.table.beans.EnumString[] |
EnumCells
|
protected static com.klg.jclass.table.beans.EnumString[] |
EnumRange
|
protected Object |
initValue
Init value of the property to be used to reset initial value. |
protected static String |
LABEL
|
protected static String |
MAXINT
|
protected String |
nl
New line delimiter for displaying a multi-line string in one line. |
protected static String |
NOVALUE
|
protected static String |
numberDelimiters
|
protected static String |
RANGE
|
protected static int |
SELECT_ALL
All cells and labels can be selected |
protected static int |
SELECT_CELLS
Only cells, but not labels can be selected |
protected static int |
SELECT_COLUMNS
Only columns can be selected |
protected static int |
SELECT_NONE
No selection is allowed |
protected int |
selectionPolicy
Supports selection? |
protected static int |
SHOW_COLUMNS
No selection is allowed, only columns are shown |
protected PropertyChangeSupport |
support
|
protected com.klg.jclass.table.beans.PropertyEditorTable |
tableView
Tables shows in the custom editor and it is used as a temporary storage of the values for the actual table.beans. |
protected JTextField |
textColumn
|
protected JTextField |
textHeight
|
protected JTextField |
textRow
|
protected JTextField |
textWidth
|
protected boolean |
updateComponents
|
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 | |
TablePropertyEditor()
Constructs TablePropertyEditor editor. |
|
TablePropertyEditor(int selectionPolicy)
Constructs TablePropertyEditor editor. |
Method Summary | |
void |
actionPerformed(ActionEvent e)
|
void |
addPropertyChangeListener(PropertyChangeListener l)
|
void |
afterSelect(com.klg.jclass.table.JCSelectEvent e)
Invoked whenever a select or deselect is completed. |
void |
beforeSelect(com.klg.jclass.table.JCSelectEvent e)
Invoked whenever a select or deselect is initiated. |
protected void |
enable(JTextField field,
boolean enabled,
int start,
int end)
|
protected void |
errorMessageBox(String message)
|
Frame |
findParent()
|
void |
focusGained(FocusEvent e)
|
void |
focusLost(FocusEvent e)
|
Component |
getCustomEditor()
Returns the custom editor. |
protected static int |
getFirstCell(int startCell)
|
protected static int |
getInt(String text)
|
protected static TablePropertyEditor.RangeValue |
getRangeValue(String value)
|
protected static TablePropertyEditor.RangeValue |
getRangeValue(String value,
String delimiters)
|
protected static int |
getStart(String s,
String range)
|
com.klg.jclass.table.beans.PropertyEditorTable |
getTableView()
|
String[] |
getTags()
Returns the tag values for this property. |
protected void |
init()
Initializes the layout of the custom editor. |
protected void |
init(boolean editable)
Initializes the layout of the custom editor. |
protected static void |
initComboBox(JComboBox cb,
com.klg.jclass.table.beans.EnumString[] EnumStrings)
|
boolean |
isPaintable()
Always returns True meaning the paintValue method is honored. |
void |
itemStateChanged(ItemEvent e)
|
protected JComponent |
makeControlPanel()
|
protected abstract JComponent |
makePropertyPanel()
|
protected JComponent |
makeSelectionPanel()
|
protected JComponent |
makeSizeResetPanel()
|
void |
paintValue(Graphics gc,
Rectangle box)
Displays selection value as string |
void |
removePropertyChangeListener(PropertyChangeListener l)
|
void |
select(com.klg.jclass.table.JCSelectEvent e)
Invoked during the selection process. |
void |
setAsText(String text)
Sets the property value as text. |
protected boolean |
setChoice(JComboBox choice,
int value)
|
protected static void |
setSelected(JCheckBox check,
boolean selected)
|
protected static void |
setSelected(JRadioButton button,
boolean selected)
|
protected static void |
setSelectedItem(JComboBox choice,
String select)
|
void |
setValue(Object value)
Sets the series value. |
boolean |
supportsCustomEditor()
Always returns true since this class is for custom editors. |
protected static int |
toIntValue(com.klg.jclass.table.beans.EnumString[] EnumStrings,
String value)
|
protected static String |
toString(com.klg.jclass.table.beans.EnumString[] EnumStrings,
int v)
|
protected abstract void |
updatePropertyPanel(com.klg.jclass.table.JCCellRange c)
|
protected void |
updateSelection()
|
protected void |
updateSelection(int startRow,
int startColumn,
int endRow,
int endColumn)
|
protected void |
updateSize()
|
protected void |
updateSizePanel()
Updates the sizes reflected in the size panel of the editor |
protected boolean |
updateTableSize()
Updates the size of the table in the series editor |
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 java.beans.PropertyEditor |
getAsText, getJavaInitializationString, getValue |
Field Detail |
protected com.klg.jclass.table.beans.PropertyEditorTable tableView
protected PropertyChangeSupport support
protected Object initValue
protected String nl
protected int selectionPolicy
protected static final int SELECT_NONE
protected static final int SELECT_CELLS
protected static final int SELECT_ALL
protected static final int SELECT_COLUMNS
protected static final int SHOW_COLUMNS
protected JComboBox choiceRow
protected JComboBox choiceColumn
protected JTextField textRow
protected JTextField textColumn
protected JTextField textWidth
protected JTextField textHeight
protected JButton buttonResetAll
protected static String numberDelimiters
protected static final String ALLCELLS
protected static final String ALL_CELLS
protected static final String ALL
protected static final String LABEL
protected static final String MAXINT
protected static final String NOVALUE
protected static final String RANGE
protected static com.klg.jclass.table.beans.EnumString[] EnumCells
protected static com.klg.jclass.table.beans.EnumString[] EnumRange
protected boolean updateComponents
Constructor Detail |
public TablePropertyEditor()
public TablePropertyEditor(int selectionPolicy)
Method Detail |
protected void init()
protected void init(boolean editable)
public com.klg.jclass.table.beans.PropertyEditorTable getTableView()
public void setValue(Object value)
setValue
in interface PropertyEditor
public Component getCustomEditor()
getCustomEditor
in interface PropertyEditor
public String[] getTags()
getTags
in interface PropertyEditor
public boolean isPaintable()
isPaintable
in interface PropertyEditor
public void setAsText(String text)
setAsText
in interface PropertyEditor
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
public void paintValue(Graphics gc, Rectangle box)
paintValue
in interface PropertyEditor
public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in interface PropertyEditor
addPropertyChangeListener
in class JComponent
public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in interface PropertyEditor
removePropertyChangeListener
in class JComponent
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void focusGained(FocusEvent e)
focusGained
in interface FocusListener
public void focusLost(FocusEvent e)
focusLost
in interface FocusListener
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public void beforeSelect(com.klg.jclass.table.JCSelectEvent e)
beforeSelect
in interface JCSelectListener
public void select(com.klg.jclass.table.JCSelectEvent e)
select
in interface JCSelectListener
public void afterSelect(com.klg.jclass.table.JCSelectEvent e)
afterSelect
in interface JCSelectListener
protected static int toIntValue(com.klg.jclass.table.beans.EnumString[] EnumStrings, String value)
protected static String toString(com.klg.jclass.table.beans.EnumString[] EnumStrings, int v)
protected static void initComboBox(JComboBox cb, com.klg.jclass.table.beans.EnumString[] EnumStrings)
protected static int getFirstCell(int startCell)
public Frame findParent()
protected abstract JComponent makePropertyPanel()
protected abstract void updatePropertyPanel(com.klg.jclass.table.JCCellRange c)
protected JComponent makeSelectionPanel()
protected JComponent makeSizeResetPanel()
protected JComponent makeControlPanel()
protected void updateSize()
protected void updateSizePanel()
protected boolean updateTableSize()
protected void errorMessageBox(String message)
protected void updateSelection()
protected void updateSelection(int startRow, int startColumn, int endRow, int endColumn)
protected static int getInt(String text)
protected void enable(JTextField field, boolean enabled, int start, int end)
protected boolean setChoice(JComboBox choice, int value)
protected static void setSelectedItem(JComboBox choice, String select)
protected static void setSelected(JRadioButton button, boolean selected)
protected static void setSelected(JCheckBox check, boolean selected)
protected static int getStart(String s, String range)
protected static TablePropertyEditor.RangeValue getRangeValue(String value)
protected static TablePropertyEditor.RangeValue getRangeValue(String value, String delimiters)
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |