|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo2.app.Component
nextapp.echo2.app.ContentPane
ch.uzh.ifi.attempto.acewiki.gui.editor.FormPane
public abstract class FormPane
This abstract class contains the basic structure for forms to create and modify words (represented by ontology elements).
Field Summary |
---|
Fields inherited from class nextapp.echo2.app.ContentPane |
---|
PROPERTY_BACKGROUND_IMAGE, PROPERTY_HORIZONTAL_SCROLL, PROPERTY_INSETS, PROPERTY_VERTICAL_SCROLL |
Fields inherited from class nextapp.echo2.app.Component |
---|
CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY |
Constructor Summary | |
---|---|
protected |
FormPane(WindowPane window,
Wiki wiki,
nextapp.echo2.app.event.ActionListener actionListener)
Initializes the form pane. |
Method Summary | |
---|---|
void |
actionPerformed(nextapp.echo2.app.event.ActionEvent e)
|
protected void |
addRow(java.lang.String labelText,
nextapp.echo2.app.Component component,
java.lang.String explanation,
boolean required)
Adds a new row to the form. |
protected void |
finished(OntologyElement el)
This method should be called when the saving process is finished successfully. |
protected void |
finished(OntologyElement el,
int wordNumber)
This method should be called when the saving process is finished successfully. |
protected Wiki |
getWiki()
Returns the wiki instance. |
protected static boolean |
isValidString(java.lang.String s)
Returns true if the string is a valid to be used as a word form. |
protected static java.lang.String |
normalize(java.lang.String s)
Normalizes the string. |
protected abstract void |
save()
This method should try to save the word with the current properties and should show error messages if this is not successful. |
protected void |
setIconRow(java.lang.String iconName,
java.lang.String text)
Sets the icon row. |
protected void |
showErrorMessage(java.lang.String text)
Shows an error message. |
Methods inherited from class nextapp.echo2.app.ContentPane |
---|
getBackgroundImage, getHorizontalScroll, getInsets, getVerticalScroll, isValidChild, isValidParent, processInput, setBackgroundImage, setHorizontalScroll, setInsets, setVerticalScroll |
Methods inherited from class nextapp.echo2.app.Component |
---|
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isVisible, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected FormPane(WindowPane window, Wiki wiki, nextapp.echo2.app.event.ActionListener actionListener)
window
- The host window.wiki
- The wiki instance.actionListener
- The actionlistener.Method Detail |
---|
protected Wiki getWiki()
protected abstract void save()
finished(OntologyElement)
,
finished(OntologyElement, int)
protected void finished(OntologyElement el)
el
- The created or modified ontology element.protected void finished(OntologyElement el, int wordNumber)
el
- The created or modified ontology element.wordNumber
- The word form id.protected void addRow(java.lang.String labelText, nextapp.echo2.app.Component component, java.lang.String explanation, boolean required)
labelText
- The text for the label shown on the left hand side of the component.component
- The component, i.e. a text field.explanation
- An explanation text shown under the component.required
- Defines whether the component should be marked as required.protected void setIconRow(java.lang.String iconName, java.lang.String text)
iconName
- The name of the icon, one of "individual", "concept", or "role".text
- The explanatory text.protected void showErrorMessage(java.lang.String text)
text
- The error text.public void actionPerformed(nextapp.echo2.app.event.ActionEvent e)
actionPerformed
in interface nextapp.echo2.app.event.ActionListener
protected static java.lang.String normalize(java.lang.String s)
s
- The string to be normalized.
protected static boolean isValidString(java.lang.String s)
s
- The string to be checked for validity.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |