com.japisoft.xmlappkit
Class TabbedPaneEditorsView

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JTabbedPane
                  extended bycom.japisoft.xmlappkit.TabbedPaneEditorsView
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.swing.SwingConstants, XMLEditorsModelListener, XMLEditorsView

public class TabbedPaneEditorsView
extends javax.swing.JTabbedPane
implements XMLEditorsView

View for all editors using a tabbedPane

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Field Summary
 
Fields inherited from class javax.swing.JTabbedPane
SCROLL_TAB_LAYOUT, WRAP_TAB_LAYOUT
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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 javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
TabbedPaneEditorsView(XMLAppContainer container)
          Here the main container for all editors, it gives information including the model
 
Method Summary
 void addXMLEditorSelectionListener(XMLEditorSelectionListener listener)
          Add a listener for XML editor selection
 XMLEditor getSelectedXMLEditor()
           
 javax.swing.JComponent getView()
           
 void modelUpdated(XMLEditorsModel model)
          Update the tabbedpane for showing all this XMLEditors
 void removeXMLEditorSelectionListener(XMLEditorSelectionListener listener)
          Remove a listener for XML editor selection
 void selectXMLEditor(int index)
          Select an XMLEditor from the XMLEditorModel order content
 void selectXMLEditor(XMLEditor editor)
          Select an XMLEditor from the XMLEditorModel content
 void setEnabled(int index, boolean enabled)
          Enabled/Disabled an editor from the XMLEditorModel order content
 void setEnabled(XMLEditor editor, boolean enabled)
          Enabled/Disabled this editor
 
Methods inherited from class javax.swing.JTabbedPane
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, getAccessibleContext, getBackgroundAt, getBoundsAt, getChangeListeners, getComponentAt, getDisabledIconAt, getDisplayedMnemonicIndexAt, getForegroundAt, getIconAt, getMnemonicAt, getModel, getSelectedComponent, getSelectedIndex, getTabCount, getTabLayoutPolicy, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getToolTipTextAt, getUI, getUIClassID, indexAtLocation, indexOfComponent, indexOfTab, indexOfTab, insertTab, isEnabledAt, remove, remove, removeAll, removeChangeListener, removeTabAt, setBackgroundAt, setComponentAt, setDisabledIconAt, setDisplayedMnemonicIndexAt, setEnabledAt, setForegroundAt, setIconAt, setMnemonicAt, setModel, setSelectedComponent, setSelectedIndex, setTabLayoutPolicy, setTabPlacement, setTitleAt, setToolTipTextAt, 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, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
addContainerListener, 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, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, 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, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.japisoft.xmlappkit.XMLEditorsView
setEnabled
 

Constructor Detail

TabbedPaneEditorsView

public TabbedPaneEditorsView(XMLAppContainer container)
Here the main container for all editors, it gives information including the model

Method Detail

getView

public javax.swing.JComponent getView()
Specified by:
getView in interface XMLEditorsView
Returns:
a swing JTabbedPane

setEnabled

public void setEnabled(int index,
                       boolean enabled)
Description copied from interface: XMLEditorsView
Enabled/Disabled an editor from the XMLEditorModel order content

Specified by:
setEnabled in interface XMLEditorsView

setEnabled

public void setEnabled(XMLEditor editor,
                       boolean enabled)
Description copied from interface: XMLEditorsView
Enabled/Disabled this editor

Specified by:
setEnabled in interface XMLEditorsView

modelUpdated

public void modelUpdated(XMLEditorsModel model)
Update the tabbedpane for showing all this XMLEditors

Specified by:
modelUpdated in interface XMLEditorsModelListener

selectXMLEditor

public void selectXMLEditor(int index)
Description copied from interface: XMLEditorsView
Select an XMLEditor from the XMLEditorModel order content

Specified by:
selectXMLEditor in interface XMLEditorsView

selectXMLEditor

public void selectXMLEditor(XMLEditor editor)
Description copied from interface: XMLEditorsView
Select an XMLEditor from the XMLEditorModel content

Specified by:
selectXMLEditor in interface XMLEditorsView

addXMLEditorSelectionListener

public void addXMLEditorSelectionListener(XMLEditorSelectionListener listener)
Description copied from interface: XMLEditorsView
Add a listener for XML editor selection

Specified by:
addXMLEditorSelectionListener in interface XMLEditorsView

removeXMLEditorSelectionListener

public void removeXMLEditorSelectionListener(XMLEditorSelectionListener listener)
Description copied from interface: XMLEditorsView
Remove a listener for XML editor selection

Specified by:
removeXMLEditorSelectionListener in interface XMLEditorsView

getSelectedXMLEditor

public XMLEditor getSelectedXMLEditor()
Specified by:
getSelectedXMLEditor in interface XMLEditorsView
Returns:
the selected XMLEditor. null is returned for no selection