ch.uzh.ifi.attempto.acewiki.gui
Class FormPane

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

public class FormPane
extends WordEditorForm

This class describes the basic structure for forms to create and modify words (represented by ontology elements).

Author:
Tobias Kuhn
See Also:
Serialized Form

Field Summary
 
Fields inherited from class nextapp.echo.app.ContentPane
OVERFLOW_AUTO, OVERFLOW_HIDDEN, OVERFLOW_SCROLL, PROPERTY_BACKGROUND_IMAGE, PROPERTY_HORIZONTAL_SCROLL, PROPERTY_INSETS, PROPERTY_OVERFLOW, PROPERTY_VERTICAL_SCROLL
 
Fields inherited from class nextapp.echo.app.Component
CHILD_VISIBLE_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_NEXT_ID_CHANGED_PROPERTY, FOCUS_PREVIOUS_ID_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
FormPane(OntologyElement element, nextapp.echo.app.WindowPane window, Wiki wiki)
          Creates a form pane for modifying an existing word.
FormPane(java.lang.String type, int wordNumber, nextapp.echo.app.WindowPane window, Wiki wiki, nextapp.echo.app.event.ActionListener actionListener)
          Creates a form pane for creating a new word.
FormPane(java.lang.String type, nextapp.echo.app.WindowPane window, Wiki wiki)
          Creates a form pane for creating a new word.
 
Method Summary
 void actionPerformed(nextapp.echo.app.event.ActionEvent e)
           
 boolean isLocked()
          Returns whether this form is locked or not.
 
Methods inherited from class ch.uzh.ifi.attempto.preditor.WordEditorForm
addButton, addRow, doFocus, getActionListener, getFormElements, getParentWindow, getRequiredFormElements, getRequiredTextFieldContents, getTitle, setButtons, setExplanationComponent, setTitle
 
Methods inherited from class nextapp.echo.app.ContentPane
getBackgroundImage, getHorizontalScroll, getInsets, getOverflow, getVerticalScroll, isValidChild, isValidParent, processInput, setBackgroundImage, setHorizontalScroll, setInsets, setOverflow, setVerticalScroll
 
Methods inherited from class nextapp.echo.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusNextId, getFocusPreviousId, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isVisible, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusNextId, setFocusPreviousId, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, 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

FormPane

public FormPane(java.lang.String type,
                int wordNumber,
                nextapp.echo.app.WindowPane window,
                Wiki wiki,
                nextapp.echo.app.event.ActionListener actionListener)
Creates a form pane for creating a new word.

Parameters:
type - The type of the new word.
wordNumber - The word number that should be used once the word is created.
window - The parent window.
wiki - The wiki object.
actionListener - The action-listener.

FormPane

public FormPane(java.lang.String type,
                nextapp.echo.app.WindowPane window,
                Wiki wiki)
Creates a form pane for creating a new word.

Parameters:
type - The type of the new word.
window - The parent window.
wiki - The wiki object.

FormPane

public FormPane(OntologyElement element,
                nextapp.echo.app.WindowPane window,
                Wiki wiki)
Creates a form pane for modifying an existing word.

Parameters:
element - The ontology element that represents the word to be modified.
window - The parent window.
wiki - The wiki object.
Method Detail

isLocked

public boolean isLocked()
Returns whether this form is locked or not.

Returns:
true if this form is locked.

actionPerformed

public void actionPerformed(nextapp.echo.app.event.ActionEvent e)
Specified by:
actionPerformed in interface nextapp.echo.app.event.ActionListener
Overrides:
actionPerformed in class WordEditorForm


Copyright 2008-2012, AceWiki developers