|
||||||||||
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 org.keridwen.modelling.group.editor.ui.CharacteristicEditorView
public class CharacteristicEditorView
GUI for the Characteristic Editor.
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 | |
---|---|
static String |
CANCEL_EDITION_ACTION
|
static String |
EDIT_SERIES_ACTION
|
static String |
EDIT_UNIT_ACTION
|
static String |
SHOW_PLOT_ACTION
|
static String |
VALID_EDITION_ACTION
|
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 | |
---|---|
CharacteristicEditorView(ActionListener listener)
Default constructor. |
Method Summary | |
---|---|
void |
addActionListener(ActionListener listener)
Main action listener |
String |
getDescription()
Get the value of the description field. |
int |
getId()
Get the value of the Id field. |
JLabel |
getLabelType()
Get the value of the type label. |
int |
getLocalisation()
Return the localisation value as set by the combobox for the current characteristic, if set or -1 otherwise. |
JPanel |
getMainPanel()
Return the main panel of the present editor view. |
String |
getPropertyName()
Get the value of the name field. |
Object |
getValueField()
Return the value in the field value, if relevant depending on the type of Characteristic. |
void |
initComponents()
Initialise the whole editor panel. |
void |
initSerieValueLine()
Initialize the sub-panel (i.e line) for the value in the case of a SeriesOfDoubleCharacteristic. |
void |
initSimpleValueLine()
Initialize the sub-panel (i.e line) for the value in the case of a simple type Characteristics (e.g DoubleCharacteristic, Float, Integer, etc...). |
void |
initTupleValueLine()
Initialize the sub-panel (i.e line) for the value in the case of a tuple type Characteristics (e.g Tuple). |
static void |
main(String[] args)
For test purpose only |
void |
setDescription(String description)
Set the value of the description field. |
void |
setId(int id)
Set the Id in the Id field. |
void |
setLabelType(JLabel labelType)
Set the value of the Characteristic type label. |
void |
setLocalisation(int local)
Set the value of the localisation combobox. |
void |
setLocalisationModel(DefaultComboBoxModel model)
Set the localisation model. |
void |
setPropertyName(String name)
Set the value of the name field. |
void |
setType(String type)
Set the type string of the Characteristic. |
void |
setUnitModel(DefaultComboBoxModel model)
|
void |
setValueField(Object value)
Set the view. |
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 |
---|
public static final String VALID_EDITION_ACTION
public static final String CANCEL_EDITION_ACTION
public static final String SHOW_PLOT_ACTION
public static final String EDIT_SERIES_ACTION
public static final String EDIT_UNIT_ACTION
Constructor Detail |
---|
public CharacteristicEditorView(ActionListener listener)
listener
- - controller to be linked.Method Detail |
---|
public void setId(int id)
id
- - Id to be set.public int getId()
public void setPropertyName(String name)
name
- to be set.public String getPropertyName()
public void setDescription(String description)
description
- - description of the characteristic.public String getDescription()
public void setValueField(Object value)
value
- - value to be displayed.public Object getValueField()
public void setLocalisationModel(DefaultComboBoxModel model)
model
- public void setType(String type)
type
- - type of the Characteristic.public void setLocalisation(int local)
local
- public int getLocalisation()
public void setUnitModel(DefaultComboBoxModel model)
public void initComponents()
public void initSimpleValueLine()
public void initTupleValueLine()
public void initSerieValueLine()
public JPanel getMainPanel()
public JLabel getLabelType()
public void setLabelType(JLabel labelType)
labelType
- Characteristic type as string.public void addActionListener(ActionListener listener)
listener
- public static void main(String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |