ch.uzh.ifi.attempto.acewiki.gui.editor
Class TrAdjForm

java.lang.Object
  extended by nextapp.echo2.app.Component
      extended by nextapp.echo2.app.ContentPane
          extended by ch.uzh.ifi.attempto.acewiki.gui.editor.FormPane
              extended by ch.uzh.ifi.attempto.acewiki.gui.editor.TrAdjForm
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, nextapp.echo2.app.event.ActionListener, nextapp.echo2.app.Pane, nextapp.echo2.app.PaneContainer, nextapp.echo2.app.RenderIdSupport

public class TrAdjForm
extends FormPane

This class represents a form to create or modify transitive adjectives.

Author:
Tobias Kuhn
See Also:
Serialized Form

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
TrAdjForm(TrAdjRole role, WindowPane window, Wiki wiki, nextapp.echo2.app.event.ActionListener actionListener)
          Creates a new form for transitive adjectives.
 
Method Summary
static WordEditorWindow createCreatorWindow(Wiki wiki, nextapp.echo2.app.event.ActionListener actionListener)
          Creates a new creator window for transitive adjectives.
static WordEditorWindow createEditorWindow(TrAdjRole role, Wiki wiki)
          Creates a new editor window for transitive adjectives.
protected  void save()
          This method should try to save the word with the current properties and should show error messages if this is not successful.
 java.lang.String toString()
           
 
Methods inherited from class ch.uzh.ifi.attempto.acewiki.gui.editor.FormPane
actionPerformed, addRow, finished, finished, getWiki, isValidString, normalize, setIconRow, showErrorMessage
 
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, wait, wait, wait
 

Constructor Detail

TrAdjForm

public TrAdjForm(TrAdjRole role,
                 WindowPane window,
                 Wiki wiki,
                 nextapp.echo2.app.event.ActionListener actionListener)
Creates a new form for transitive adjectives.

Parameters:
role - The role that is represented by the transitive adjective.
window - The host window of the form.
wiki - The wiki instance.
actionListener - The actionlistener.
Method Detail

createCreatorWindow

public static WordEditorWindow createCreatorWindow(Wiki wiki,
                                                   nextapp.echo2.app.event.ActionListener actionListener)
Creates a new creator window for transitive adjectives.

Parameters:
wiki - The wiki instance.
actionListener - The actionlistener.
Returns:
The new creator window.

createEditorWindow

public static WordEditorWindow createEditorWindow(TrAdjRole role,
                                                  Wiki wiki)
Creates a new editor window for transitive adjectives.

Parameters:
role - The role that is represented by the transitive adjective that should be edited.
wiki - The wiki instance.
Returns:
The new editor window.

save

protected void save()
Description copied from class: FormPane
This method should try to save the word with the current properties and should show error messages if this is not successful. In the case of success, one of the finished-methods has to be called.

Specified by:
save in class FormPane
See Also:
FormPane.finished(OntologyElement), FormPane.finished(OntologyElement, int)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 2008, Attempto Group, University of Zurich (see http://attempto.ifi.uzh.ch)