JRubik v0.6

es.aeat.eett.plugins.infoRubik.deploy
Class MasterDeployPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byes.aeat.eett.plugins.infoRubik.deploy.MasterDeployPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, com.tonbeller.jpivot.core.ModelChangeListener, java.io.Serializable

public class MasterDeployPanel
extends javax.swing.JPanel
implements com.tonbeller.jpivot.core.ModelChangeListener

Author:
f00992 TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates
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
private  javax.swing.Action actionAniadir
           
private  javax.swing.Action actionLimpiar
           
private static java.lang.String ANIADIR
           
private  boolean autoUpdate
           
private  MasterDeploy despliegue
           
private static java.lang.String DESPLIEGUE
           
private  boolean dirty
           
private  AvailableHierarchies disponibles
           
private  javax.swing.JMenuBar jMenuBar1
           
private  javax.swing.JMenu jMenuDespliege
           
private  javax.swing.JMenuItem jMenuItemAniadir
           
private  javax.swing.JMenuItem jMenuItemLimpiar
           
private  javax.swing.JScrollPane jScrollPane1
           
private  javax.swing.JScrollPane jScrollPane2
           
private  javax.swing.JSeparator jSeparator1
           
private  javax.swing.JSplitPane jSplitPane1
           
private  javax.swing.JToolBar jToolBar1
           
private  javax.swing.JTree jTreeDisponibles
           
private  javax.swing.JTree jTreeElegidas
           
private static java.lang.String LIMPIAR_TDODO
           
private static java.util.ResourceBundle localizationResources
           
private  CheckNode rootDisponibles
           
private  javax.swing.tree.DefaultMutableTreeNode rootElegidas
           
 
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
MasterDeployPanel()
          Creates new JScroll Despliege
 
Method Summary
private  void cfg()
           
private  void clearTrees()
           
private  CheckNode copiaNodo(CheckNode nodo)
           
private  void expandAll(javax.swing.JTree tree, javax.swing.tree.DefaultMutableTreeNode n)
           
private  void expandHijosNodo(javax.swing.JTree tree, javax.swing.tree.DefaultMutableTreeNode n)
           
 javax.swing.Action getActionAniadir()
           
 MasterDeploy getDespliegue()
           
(package private)  AvailableHierarchies getDisponibles()
           
 javax.swing.JTree getJTreeDisponibles()
           
 javax.swing.JTree getJTreeElegidas()
           
private  void initComponents()
           
 void initNodes()
           
(package private)  boolean isAutoUpdate()
           
private  void jTreeDisponiblesValueChanged(javax.swing.event.TreeSelectionEvent evt)
           
 void modelChanged(com.tonbeller.jpivot.core.ModelChangeEvent arg0)
           
 void setAutoUpdate(boolean autoUpdate)
           
private  void setSizePane()
          Fija tamanio y posicion inicial de la ventana
 void structureChanged(com.tonbeller.jpivot.core.ModelChangeEvent arg0)
           
 void updateTrees()
           
 
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

localizationResources

private static final java.util.ResourceBundle localizationResources

DESPLIEGUE

private static final java.lang.String DESPLIEGUE

LIMPIAR_TDODO

private static final java.lang.String LIMPIAR_TDODO

ANIADIR

private static final java.lang.String ANIADIR

jMenuItemAniadir

private javax.swing.JMenuItem jMenuItemAniadir

jTreeElegidas

private javax.swing.JTree jTreeElegidas

jScrollPane1

private javax.swing.JScrollPane jScrollPane1

jMenuItemLimpiar

private javax.swing.JMenuItem jMenuItemLimpiar

jSplitPane1

private javax.swing.JSplitPane jSplitPane1

jScrollPane2

private javax.swing.JScrollPane jScrollPane2

jToolBar1

private javax.swing.JToolBar jToolBar1

jMenuDespliege

private javax.swing.JMenu jMenuDespliege

jSeparator1

private javax.swing.JSeparator jSeparator1

jTreeDisponibles

private javax.swing.JTree jTreeDisponibles

jMenuBar1

private javax.swing.JMenuBar jMenuBar1

rootDisponibles

private CheckNode rootDisponibles

rootElegidas

private javax.swing.tree.DefaultMutableTreeNode rootElegidas

disponibles

private AvailableHierarchies disponibles

despliegue

private MasterDeploy despliegue

dirty

private boolean dirty

autoUpdate

private boolean autoUpdate

actionAniadir

private javax.swing.Action actionAniadir

actionLimpiar

private javax.swing.Action actionLimpiar
Constructor Detail

MasterDeployPanel

public MasterDeployPanel()
Creates new JScroll Despliege

Method Detail

isAutoUpdate

boolean isAutoUpdate()
Returns:
Returns the autoUpdate.

setAutoUpdate

public void setAutoUpdate(boolean autoUpdate)
Parameters:
autoUpdate - The autoUpdate to set.

clearTrees

private void clearTrees()

updateTrees

public void updateTrees()

expandAll

private void expandAll(javax.swing.JTree tree,
                       javax.swing.tree.DefaultMutableTreeNode n)

initNodes

public void initNodes()

expandHijosNodo

private void expandHijosNodo(javax.swing.JTree tree,
                             javax.swing.tree.DefaultMutableTreeNode n)

cfg

private void cfg()

getDisponibles

AvailableHierarchies getDisponibles()
Returns:
Returns the disponibles.

getActionAniadir

public javax.swing.Action getActionAniadir()
Returns:
Returns the actionAniadir.

getJTreeDisponibles

public javax.swing.JTree getJTreeDisponibles()
Returns:
Returns the jTreeDisponibles.

getJTreeElegidas

public javax.swing.JTree getJTreeElegidas()
Returns:
Returns the jTreeElegidas.

getDespliegue

public MasterDeploy getDespliegue()

copiaNodo

private CheckNode copiaNodo(CheckNode nodo)

initComponents

private void initComponents()

setSizePane

private void setSizePane()
Fija tamanio y posicion inicial de la ventana


jTreeDisponiblesValueChanged

private void jTreeDisponiblesValueChanged(javax.swing.event.TreeSelectionEvent evt)

modelChanged

public void modelChanged(com.tonbeller.jpivot.core.ModelChangeEvent arg0)
Specified by:
modelChanged in interface com.tonbeller.jpivot.core.ModelChangeListener

structureChanged

public void structureChanged(com.tonbeller.jpivot.core.ModelChangeEvent arg0)
Specified by:
structureChanged in interface com.tonbeller.jpivot.core.ModelChangeListener

JRubik v0.6

JRubik v0.6