de.unidu.is.annotation.rework.gui
Class AnnotationPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byde.unidu.is.annotation.rework.gui.AnnotationPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class AnnotationPanel
extends javax.swing.JPanel

Created on 27.06.2005 This panel shows the values of an annotation (author, annotationstype, title, text)

Author:
Andreas Wentz
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  AnnotationService annoService
           
private  java.lang.String author
           
private  boolean editableCheck
           
private  javax.swing.JLabel jLabelAuthor
           
private  javax.swing.JLabel jLabelText
           
private  javax.swing.JLabel jLabelTitle
           
private  javax.swing.JLabel jLabelType
           
private  javax.swing.JPanel jPanel
           
private  javax.swing.JPanel jPanel1
           
private  javax.swing.JPanel jPanel6
           
private  javax.swing.JPanel jPanelAuthor
           
private  javax.swing.JPanel jPanelFullText
           
private  javax.swing.JPanel jPanelTitle
           
private  javax.swing.JPanel jPanelTypeTree
           
private  javax.swing.JScrollPane jScrollPaneFullText
           
private  javax.swing.JScrollPane jScrollPaneTypeTree
           
private  javax.swing.JTextArea jTextAreaFullText
           
private  javax.swing.JTextField jTextFieldAuthor
           
private  javax.swing.JTextField jTextFieldTitle
           
private  javax.swing.JTree jTree
           
private  de.unido.daffodil.gui.PaddleGUIFunctionality pgf
           
protected  CheckNode root
           
private  java.lang.String text
           
private  java.lang.String title
           
private  de.unido.daffodil.dataclasses.User user
           
private  java.lang.String userID
           
 
Fields inherited from class javax.swing.JPanel
 
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.Container
 
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
AnnotationPanel(AnnotationService annoService)
          Constructor AnnotationPanel(AnnotationService annoService) for MVB
AnnotationPanel(AnnotationService annoService, de.unido.daffodil.gui.PaddleGUIFunctionality pgf)
          Constructor AnnotationPanel(AnnotationService annoService, PaddleGUIFunctionality pgf)
AnnotationPanel(AnnotationService annoService, de.unido.daffodil.gui.PaddleGUIFunctionality pgf, boolean editableCheck)
          Constructor AnnotationPanel(AnnotationService annoService, PaddleGUIFunctionality pgf, boolean editableCheck) for editable checknodetree
 
Method Summary
 javax.swing.JTextField getAuthorComponent()
          getAuthorComponent()
 java.util.List getCheckedNodes()
          getCheckedNodes()
 void getCheckedNodes(CheckNode node, java.util.List list)
           
private  javax.swing.JPanel getJPanel()
          This method initializes jPanel
private  javax.swing.JPanel getJPanel1()
          This method initializes jPanel1
private  javax.swing.JPanel getJPanel6()
          This method initializes jPanel6
private  javax.swing.JPanel getJPanelAuthor()
          This method initializes jPanelAuthor
private  javax.swing.JPanel getJPanelFullText()
          This method initializes jPanelFullText
private  javax.swing.JPanel getJPanelTitle()
          This method initializes jPanelTitle
private  javax.swing.JPanel getJPanelTypeTree()
          This method initializes jPanelTypeTree
private  javax.swing.JScrollPane getJScrollPaneFullText()
          This method initializes jScrollPaneFullText
private  javax.swing.JScrollPane getJScrollPaneTypeTree()
          This method initializes jScrollPaneTypeTree
private  javax.swing.JTextArea getJTextAreaFullText()
          This method initializes jTextAreaFullText
private  javax.swing.JTextField getJTextFieldAuthor()
          This method initializes jTextFieldAuthor
private  javax.swing.JTextField getJTextFieldTitle()
          This method initializes jTextFieldTitle
private  javax.swing.JTree getJTree()
          This method initializes jTree
 javax.swing.JTextArea getTextComponent()
          getTextComponent()
 javax.swing.JTextField getTitleComponent()
          getTitleComponent()
private  void initialize()
          This method initializes this
 void setAuthorComponent(java.lang.String author)
          setAuthorComponent(String author)
 void setCheckedNodes(CheckNode node, java.util.List list)
           
 void setCheckedNodes(java.util.List list)
          set the checkNodes in the TypeTree
 void setEditableAuthor(boolean b)
          setEditableAuthor(boolean b)
 void setEditableValues(boolean b)
          setEditableValues(boolean b) sets Title and Fulltext editable
 void setRootSelected(boolean b)
          setRootSelected(boolean b) set the root element of the TypeTree selected for new annotations
 void setTitleComponent(java.lang.String title)
          setTitleComponent(String title) for MVB
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

jPanel

private javax.swing.JPanel jPanel

jTree

private javax.swing.JTree jTree

jPanel1

private javax.swing.JPanel jPanel1

jLabelType

private javax.swing.JLabel jLabelType

jPanelTypeTree

private javax.swing.JPanel jPanelTypeTree

jPanelAuthor

private javax.swing.JPanel jPanelAuthor

jLabelAuthor

private javax.swing.JLabel jLabelAuthor

jTextFieldAuthor

private javax.swing.JTextField jTextFieldAuthor

jPanelTitle

private javax.swing.JPanel jPanelTitle

jLabelTitle

private javax.swing.JLabel jLabelTitle

jTextFieldTitle

private javax.swing.JTextField jTextFieldTitle

jPanelFullText

private javax.swing.JPanel jPanelFullText

jLabelText

private javax.swing.JLabel jLabelText

jTextAreaFullText

private javax.swing.JTextArea jTextAreaFullText

jPanel6

private javax.swing.JPanel jPanel6

jScrollPaneFullText

private javax.swing.JScrollPane jScrollPaneFullText

jScrollPaneTypeTree

private javax.swing.JScrollPane jScrollPaneTypeTree

annoService

protected AnnotationService annoService

author

private java.lang.String author

title

private java.lang.String title

text

private java.lang.String text

user

private de.unido.daffodil.dataclasses.User user

userID

private java.lang.String userID

pgf

private de.unido.daffodil.gui.PaddleGUIFunctionality pgf

editableCheck

private boolean editableCheck

root

protected CheckNode root
Constructor Detail

AnnotationPanel

public AnnotationPanel(AnnotationService annoService,
                       de.unido.daffodil.gui.PaddleGUIFunctionality pgf)
                throws de.unido.daffodil.gui.NoUserException
Constructor AnnotationPanel(AnnotationService annoService, PaddleGUIFunctionality pgf)

Parameters:
annoService -
pgf -
Throws:
de.unido.daffodil.gui.NoUserException

AnnotationPanel

public AnnotationPanel(AnnotationService annoService,
                       de.unido.daffodil.gui.PaddleGUIFunctionality pgf,
                       boolean editableCheck)
                throws de.unido.daffodil.gui.NoUserException
Constructor AnnotationPanel(AnnotationService annoService, PaddleGUIFunctionality pgf, boolean editableCheck) for editable checknodetree

Parameters:
annoService - AnnotationService
pgf - PaddleGUIFunctionality
editableCheck -
Throws:
de.unido.daffodil.gui.NoUserException

AnnotationPanel

public AnnotationPanel(AnnotationService annoService)
Constructor AnnotationPanel(AnnotationService annoService) for MVB

Parameters:
annoService - AnnotationService
Method Detail

initialize

private void initialize()
This method initializes this


getJPanel

private javax.swing.JPanel getJPanel()
This method initializes jPanel

Returns:
javax.swing.JPanel

getCheckedNodes

public java.util.List getCheckedNodes()
getCheckedNodes()

Returns:
List of checked Nodes in the TypeTree

getCheckedNodes

public void getCheckedNodes(CheckNode node,
                            java.util.List list)

setCheckedNodes

public void setCheckedNodes(java.util.List list)
set the checkNodes in the TypeTree

Parameters:
list -

setCheckedNodes

public void setCheckedNodes(CheckNode node,
                            java.util.List list)

getAuthorComponent

public javax.swing.JTextField getAuthorComponent()
getAuthorComponent()

Returns:
Authorname

setAuthorComponent

public void setAuthorComponent(java.lang.String author)
setAuthorComponent(String author)

Parameters:
author -

getTitleComponent

public javax.swing.JTextField getTitleComponent()
getTitleComponent()

Returns:
Title

setTitleComponent

public void setTitleComponent(java.lang.String title)
setTitleComponent(String title) for MVB

Parameters:
title -

getTextComponent

public javax.swing.JTextArea getTextComponent()
getTextComponent()

Returns:
FullText

getJTree

private javax.swing.JTree getJTree()
This method initializes jTree

Returns:
javax.swing.JTree

getJPanel1

private javax.swing.JPanel getJPanel1()
This method initializes jPanel1

Returns:
javax.swing.JPanel

getJPanelTypeTree

private javax.swing.JPanel getJPanelTypeTree()
This method initializes jPanelTypeTree

Returns:
javax.swing.JPanel

getJPanelAuthor

private javax.swing.JPanel getJPanelAuthor()
This method initializes jPanelAuthor

Returns:
javax.swing.JPanel

getJTextFieldAuthor

private javax.swing.JTextField getJTextFieldAuthor()
This method initializes jTextFieldAuthor

Returns:
javax.swing.JTextField

getJPanelTitle

private javax.swing.JPanel getJPanelTitle()
This method initializes jPanelTitle

Returns:
javax.swing.JPanel

getJTextFieldTitle

private javax.swing.JTextField getJTextFieldTitle()
This method initializes jTextFieldTitle

Returns:
javax.swing.JTextField

getJPanelFullText

private javax.swing.JPanel getJPanelFullText()
This method initializes jPanelFullText

Returns:
javax.swing.JPanel

getJTextAreaFullText

private javax.swing.JTextArea getJTextAreaFullText()
This method initializes jTextAreaFullText

Returns:
javax.swing.JTextArea

getJPanel6

private javax.swing.JPanel getJPanel6()
This method initializes jPanel6

Returns:
javax.swing.JPanel

getJScrollPaneFullText

private javax.swing.JScrollPane getJScrollPaneFullText()
This method initializes jScrollPaneFullText

Returns:
javax.swing.JScrollPane

getJScrollPaneTypeTree

private javax.swing.JScrollPane getJScrollPaneTypeTree()
This method initializes jScrollPaneTypeTree

Returns:
javax.swing.JScrollPane

setEditableAuthor

public void setEditableAuthor(boolean b)
setEditableAuthor(boolean b)

Parameters:
b -

setEditableValues

public void setEditableValues(boolean b)
setEditableValues(boolean b) sets Title and Fulltext editable

Parameters:
b -

setRootSelected

public void setRootSelected(boolean b)
setRootSelected(boolean b) set the root element of the TypeTree selected for new annotations

Parameters:
b -