com.tensegrity.gui.template
Class TemplateRepositoryItemPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bycom.tensegrity.gui.swing.repository.RepositoryItemPanel
                      extended bycom.tensegrity.gui.template.TemplateRepositoryItemPanel
All Implemented Interfaces:
javax.accessibility.Accessible, Evaluable, java.awt.image.ImageObserver, java.awt.ItemSelectable, java.awt.MenuContainer, java.io.Serializable

public class TemplateRepositoryItemPanel
extends RepositoryItemPanel

The TemplateRepositoryItemPanel is a panel for TemplateRepositoryItems. It is associated with a (template)-filename.

Version:
$Id: TemplateRepositoryItemPanel.java,v 1.16 2006/03/02 11:42:01 BurkhardWick Exp $
Author:
GillesIachelini
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
 
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.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
TemplateRepositoryItemPanel(int horizontalgap, int verticalgap)
          Creates the TemplateRepositoryItemPanel with the given gap values.
 
Method Summary
 java.util.List createNamesList()
          Creates a list of all available Template names.
 java.lang.String getDirectory()
          Returns the name of the directory where the templates are stored.
 java.lang.String getElementXML()
          Returns the name of the element xml file.
 java.lang.String getGeometryXML()
          Returns the name of the geometry xml file.
 int getSlideIndex()
          The method getSlideIndex returns the slideIndex this ItemPanel is associated with.
 java.lang.String getStyleXML()
          Returns the name of the style xml.
 TemplateAttributableOnSet getTemplateAttributableOnSet()
          Returns the TemplateAttributableOnSet associated with this panel.
 java.lang.String getTemplatesName()
          Returns the name of the Templates aka. title of this panel.
 void setDirectory(java.lang.String string)
          Sets the name of directory.
 void setSlideIndex(int i)
          The method setSlideIndex sets the index of a slide.
 void setTemplateAttributableOnSet(TemplateAttributableOnSet set)
          Sets the TemplateAttributableOnSet.
 void setTemplatesName(java.lang.String string)
          Sets the name of the templates aka. title of this panel.
 
Methods inherited from class com.tensegrity.gui.swing.repository.RepositoryItemPanel
addIcon, addItemListener, addJComponent, addRepositoryItem, applyEvList, getGradientEndColor, getGradientEndPosition, getGradientStartColor, getGradientStartPosition, getMaximumSize, getPreferredSize, getSelectedObjects, getSelection, installEvList, paintComponent, postItemEvent, removeItemListener, setBounds, setGradientEndColor, setGradientEndPosition, setGradientStartColor, setGradientStartPosition, setGraphApplication, setHorizontalSpacing, setItemHeight, setItemWidth, setJPopupMenuSource, setSelection, setUIManager, setVerticalSpacing, showPopup, updateUI
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI
 
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, getMinimumSize, getNextFocusableComponent, 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, 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, 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
 

Constructor Detail

TemplateRepositoryItemPanel

public TemplateRepositoryItemPanel(int horizontalgap,
                                   int verticalgap)
Creates the TemplateRepositoryItemPanel with the given gap values.

Parameters:
horizontalgap - horizontal gap of the icons.
verticalgap - vertical gap of the icons.
Method Detail

getSlideIndex

public int getSlideIndex()
The method getSlideIndex returns the slideIndex this ItemPanel is associated with.

Returns:
int the index of the associated slide as integer.

setSlideIndex

public void setSlideIndex(int i)
The method setSlideIndex sets the index of a slide. A ItemPanel always resides in a SlidePanel (so far). To retrieve this slide you may use the index provided by getSlideIndex() to retrieve it. Use then SlidePanel.getSlide(int) to get the slide this panel is embedded in.

Parameters:
i - the index as integer.

getElementXML

public java.lang.String getElementXML()
Returns the name of the element xml file.

Returns:
the name of the element xml file.

getGeometryXML

public java.lang.String getGeometryXML()
Returns the name of the geometry xml file.

Returns:
the name of the geometry xml file.

getStyleXML

public java.lang.String getStyleXML()
Returns the name of the style xml.

Returns:
the name of the style xml file.

getDirectory

public java.lang.String getDirectory()
Returns the name of the directory where the templates are stored.

Returns:
the name of the directory.

setDirectory

public void setDirectory(java.lang.String string)
Sets the name of directory.

Parameters:
string - the directory location as String.

getTemplatesName

public java.lang.String getTemplatesName()
Returns the name of the Templates aka. title of this panel.

Returns:
the name of the templates.

setTemplatesName

public void setTemplatesName(java.lang.String string)
Sets the name of the templates aka. title of this panel.

Parameters:
string - name of the templates.

getTemplateAttributableOnSet

public TemplateAttributableOnSet getTemplateAttributableOnSet()
Returns the TemplateAttributableOnSet associated with this panel.

Returns:
the internal TemplateAttributableOnSet instance.

setTemplateAttributableOnSet

public void setTemplateAttributableOnSet(TemplateAttributableOnSet set)
Sets the TemplateAttributableOnSet.

Parameters:
set - the new TemplateAttributableOnSet.

createNamesList

public java.util.List createNamesList()
Creates a list of all available Template names. These are the currently visible Templates in this RepositoryPanel as well as existing templates in the element xml file.

Returns:
a List with all the template names.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.