| javax.swing.JPanel de.fho.jump.pirol.ui.panels.NewAttributePanel
NewAttributePanel | public class NewAttributePanel extends JPanel implements ActionListener(Code) | | A Panel that contains controls to collect all information needed to create
a new attribute out of.
The following information will be collected:
-name of the attribute
-type of the attribute values
-Default-value (will initially filled in all features)
author: Ole Rahn author:
author: FH Osnabrück - University of Applied Sciences Osnabrück, author: Project: PIROL (2005), author: Subproject: Daten- und Wissensmanagement version: $Rev: 856 $ |
needDefaultValue | protected boolean needDefaultValue(Code) | | |
NewAttributePanel | public NewAttributePanel(boolean arg0, boolean needDefaultValue)(Code) | | Parameters: arg0 - see JPanel for information Parameters: needDefaultValue - a field for a default value will be shown or not |
NewAttributePanel | public NewAttributePanel(boolean arg0, AttributeType[] onlyTypes, boolean needDefaultValue)(Code) | | Parameters: arg0 - see JPanel for information Parameters: onlyTypes - array of attribute type, that are supposed to be chooseable Parameters: needDefaultValue - a field for a default value will be shown or not |
actionPerformed | public void actionPerformed(ActionEvent event)(Code) | | checks and fixes the integrity of the values given, when the attribute
type is changed.
Parameters: event - the action event |
addActionListenerToDefValueTextfield | public void addActionListenerToDefValueTextfield(ActionListener arg0)(Code) | | |
addActionListenerToNameTextfield | public void addActionListenerToNameTextfield(ActionListener arg0)(Code) | | |
addActionListenerToTypeDropDown | public void addActionListenerToTypeDropDown(ActionListener arg0)(Code) | | |
getAttributeInfo | public AttributeInfo getAttributeInfo()(Code) | | Returns the collected information on the new attribute. Since this method calls
getDefaultValue(), it may throw the same Exception...
the collected information |
getDefaultValue | protected Object getDefaultValue()(Code) | | Returns the default value for the attribute we want to create. This function may throw
a RuntimeException, if the value filled in for the default value can not be parsed!
default value |
isDataValid | public boolean isDataValid()(Code) | | This allows you to check, if the data filled in by the user makes sense or not.
You may want enable/disable the ok-button, depending on the return value of this
function.
true if values are ok, else false |
setAttributeName | public void setAttributeName(String attrName)(Code) | | Sets the text that will be displayed in the text field for the new attribute's name.
Parameters: attrName - text that will be displayed in the name text field |
setDefValLabel | public void setDefValLabel(String defValLabel)(Code) | | Sets the label text for the default value field
Parameters: defValLabel - The defValLabel to set. |
setNameLabel | public void setNameLabel(String nameLabel)(Code) | | Sets the label text for the name field
Parameters: nameLabel - The nameLabel to set. |
setTypeLabel | public void setTypeLabel(String typeLabel)(Code) | | Sets the label text for the type field
Parameters: typeLabel - The typeLabel to set. |
setupUI | protected void setupUI()(Code) | | Sets up GUI controlls.
|
|
|