Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

nectar.reda.recordeditor.client
Class ContentManagerPanel  view ContentManagerPanel download ContentManagerPanel.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bynectar.reda.recordeditor.client.ContentManagerPanel
All Implemented Interfaces:
javax.accessibility.Accessible, nectar.reda.client.base.GUIPlugIn, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class ContentManagerPanel
extends javax.swing.JPanel
implements nectar.reda.client.base.GUIPlugIn


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.JPanel buttonPanel
           
private  nectar.reda.io.ControllerThread controller
           
static int DOCS_INDEX
           
private static java.lang.String DOCS_PANEL_TITLE
           
private  javax.swing.JToolBar dropToolBar
           
private  DropZonePanel dropZonePanel
           
private  javax.swing.JScrollPane dropZoneScrollPane
           
static int FAQ_INDEX
           
private static java.lang.String FAQ_PANEL_TITLE
           
static int FORUM_INDEX
           
private static java.lang.String FORUM_PANEL_TITLE
           
private  javax.swing.JPanel jPanel1
           
private  javax.swing.JPanel jPanel2
           
private  javax.swing.JSeparator jSeparator1
           
private  CMListPanel[] listPanels
           
private  javax.swing.JButton newButton
           
private  javax.swing.JMenuItem newCategoryMenuItem
           
private  javax.swing.JMenuItem newDocumentationMenuItem
           
private  javax.swing.JMenuItem newFaqMenuItem
           
private  javax.swing.JMenuItem newForumMenuItem
           
private  javax.swing.JMenuItem newNewsMenuItem
           
private  javax.swing.JPopupMenu newPopupMenu
           
static int NEWS_INDEX
           
private static java.lang.String NEWS_PANEL_TITLE
           
private static int PANEL_COUNT
           
private  nectar.reda.client.base.ActionPump pump
           
private  javax.swing.JTabbedPane tabbedPane
           
private  javax.swing.JButton trashCanButton
           
 
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
ContentManagerPanel()
          Creates new form ContentManagerPanel
 
Method Summary
 boolean addToDropZone(nectar.view.RecordView view)
          Add a RecordView instance to the Drop Zone Panel
 void deleteRecord(nectar.record.Record record)
          Deletes a Record from the server asynchronously -- this method hands a delete record task to an available TaskThread and returns immediately.
private  void dragObjectLinkUpdateOrdering(nectar.record.Record record, CMButtonPanel dropPanel)
           
private  int dragObjectPaneFilter(java.lang.String paneStr, nectar.record.Record record)
           
private  void dragObjectSetActive(nectar.record.Record record)
           
private  void dragObjectUpdateOrdering(CMListPanel listPanel, CMButtonPanel dropPanel, nectar.record.Record record, boolean before)
           
private  void dragObjectUpdateOwner(CMButtonPanel dropPanel, nectar.record.Record record, boolean link)
           
 CMListPanel getListPanel(int index)
           
 javax.swing.JPanel getTabPanel()
          GUIPlugIn implementation -- returns this.
 java.lang.String getTabPanelTitle()
          GUIPlugIn implementation -- returns "Content Manager".
 boolean hasTabPanel()
          GUIPlugIn implementation -- returns true.
private  void initComponents()
          This method is called from within the constructor to initialize the form.
 boolean initialize()
          GUIPlugIn implementation -- initializes the listPanels.
private  void initializeDocumentation()
           
private  void initializeFaq()
           
private  void initializeForum()
           
private  void initializeNews()
           
 boolean linkDragObjectToCurrentPane(nectar.record.Record record, CMButtonPanel dropPanel)
           
 boolean moveDragObjectToCurrentPane(nectar.record.Record record, CMButtonPanel dropPanel, boolean before)
          Compares the dragObject to the RecordViews that the currently selected view listPanel may accept and if the object can be accepted, creates a new view instance and inserts the object before or after the reference CMButtonPanel.
private  void newButtonMousePressed(java.awt.event.MouseEvent evt)
           
private  void newCategoryMenuItemActionPerformed(java.awt.event.ActionEvent evt)
           
private  void newDocumentationMenuItemActionPerformed(java.awt.event.ActionEvent evt)
           
private  void newFaqMenuItemActionPerformed(java.awt.event.ActionEvent evt)
           
private  void newForumMenuItemActionPerformed(java.awt.event.ActionEvent evt)
           
private  void newNewsMenuItemActionPerformed(java.awt.event.ActionEvent evt)
           
 void saveRecord(nectar.record.Record record)
          Commits a Record to the server for storage synchronously -- This method will only return once the save is completed.
 void setActionPump(nectar.reda.client.base.ActionPump pump)
          GUIPlugIn implementation.
 void setController(nectar.reda.io.ControllerThread controller)
          GUIPlugIn implementation.
private  void trashCanButtonActionPerformed(java.awt.event.ActionEvent evt)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, 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, 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, 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, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, 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, getPropertyChangeListeners, getPropertyChangeListeners, 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, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

controller

private nectar.reda.io.ControllerThread controller

pump

private nectar.reda.client.base.ActionPump pump

dropZonePanel

private DropZonePanel dropZonePanel

NEWS_PANEL_TITLE

private static java.lang.String NEWS_PANEL_TITLE

DOCS_PANEL_TITLE

private static java.lang.String DOCS_PANEL_TITLE

FAQ_PANEL_TITLE

private static java.lang.String FAQ_PANEL_TITLE

FORUM_PANEL_TITLE

private static java.lang.String FORUM_PANEL_TITLE

NEWS_INDEX

public static int NEWS_INDEX

DOCS_INDEX

public static int DOCS_INDEX

FAQ_INDEX

public static int FAQ_INDEX

FORUM_INDEX

public static int FORUM_INDEX

PANEL_COUNT

private static int PANEL_COUNT

listPanels

private CMListPanel[] listPanels

newButton

private javax.swing.JButton newButton

newCategoryMenuItem

private javax.swing.JMenuItem newCategoryMenuItem

newForumMenuItem

private javax.swing.JMenuItem newForumMenuItem

newFaqMenuItem

private javax.swing.JMenuItem newFaqMenuItem

newPopupMenu

private javax.swing.JPopupMenu newPopupMenu

jPanel2

private javax.swing.JPanel jPanel2

dropToolBar

private javax.swing.JToolBar dropToolBar

dropZoneScrollPane

private javax.swing.JScrollPane dropZoneScrollPane

newDocumentationMenuItem

private javax.swing.JMenuItem newDocumentationMenuItem

tabbedPane

private javax.swing.JTabbedPane tabbedPane

trashCanButton

private javax.swing.JButton trashCanButton

jSeparator1

private javax.swing.JSeparator jSeparator1

jPanel1

private javax.swing.JPanel jPanel1

buttonPanel

private javax.swing.JPanel buttonPanel

newNewsMenuItem

private javax.swing.JMenuItem newNewsMenuItem
Constructor Detail

ContentManagerPanel

public ContentManagerPanel()
Creates new form ContentManagerPanel

Method Detail

initializeNews

private void initializeNews()

initializeDocumentation

private void initializeDocumentation()

initializeForum

private void initializeForum()

initializeFaq

private void initializeFaq()

initComponents

private void initComponents()
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.


trashCanButtonActionPerformed

private void trashCanButtonActionPerformed(java.awt.event.ActionEvent evt)

newCategoryMenuItemActionPerformed

private void newCategoryMenuItemActionPerformed(java.awt.event.ActionEvent evt)

newButtonMousePressed

private void newButtonMousePressed(java.awt.event.MouseEvent evt)

newNewsMenuItemActionPerformed

private void newNewsMenuItemActionPerformed(java.awt.event.ActionEvent evt)

newForumMenuItemActionPerformed

private void newForumMenuItemActionPerformed(java.awt.event.ActionEvent evt)

newDocumentationMenuItemActionPerformed

private void newDocumentationMenuItemActionPerformed(java.awt.event.ActionEvent evt)

newFaqMenuItemActionPerformed

private void newFaqMenuItemActionPerformed(java.awt.event.ActionEvent evt)

getTabPanel

public javax.swing.JPanel getTabPanel()
GUIPlugIn implementation -- returns this.

Specified by:
getTabPanel in interface nectar.reda.client.base.GUIPlugIn

getTabPanelTitle

public java.lang.String getTabPanelTitle()
GUIPlugIn implementation -- returns "Content Manager".

Specified by:
getTabPanelTitle in interface nectar.reda.client.base.GUIPlugIn

hasTabPanel

public boolean hasTabPanel()
GUIPlugIn implementation -- returns true.

Specified by:
hasTabPanel in interface nectar.reda.client.base.GUIPlugIn

initialize

public boolean initialize()
GUIPlugIn implementation -- initializes the listPanels.

Specified by:
initialize in interface nectar.reda.client.base.GUIPlugIn

setActionPump

public void setActionPump(nectar.reda.client.base.ActionPump pump)
GUIPlugIn implementation.

Specified by:
setActionPump in interface nectar.reda.client.base.GUIPlugIn

setController

public void setController(nectar.reda.io.ControllerThread controller)
GUIPlugIn implementation.

Specified by:
setController in interface nectar.reda.client.base.GUIPlugIn

addToDropZone

public boolean addToDropZone(nectar.view.RecordView view)
Add a RecordView instance to the Drop Zone Panel


saveRecord

public void saveRecord(nectar.record.Record record)
Commits a Record to the server for storage synchronously -- This method will only return once the save is completed.


deleteRecord

public void deleteRecord(nectar.record.Record record)
Deletes a Record from the server asynchronously -- this method hands a delete record task to an available TaskThread and returns immediately.


getListPanel

public CMListPanel getListPanel(int index)

dragObjectPaneFilter

private int dragObjectPaneFilter(java.lang.String paneStr,
                                 nectar.record.Record record)

dragObjectUpdateOrdering

private void dragObjectUpdateOrdering(CMListPanel listPanel,
                                      CMButtonPanel dropPanel,
                                      nectar.record.Record record,
                                      boolean before)

dragObjectUpdateOwner

private void dragObjectUpdateOwner(CMButtonPanel dropPanel,
                                   nectar.record.Record record,
                                   boolean link)

dragObjectSetActive

private void dragObjectSetActive(nectar.record.Record record)

dragObjectLinkUpdateOrdering

private void dragObjectLinkUpdateOrdering(nectar.record.Record record,
                                          CMButtonPanel dropPanel)

moveDragObjectToCurrentPane

public boolean moveDragObjectToCurrentPane(nectar.record.Record record,
                                           CMButtonPanel dropPanel,
                                           boolean before)
Compares the dragObject to the RecordViews that the currently selected view listPanel may accept and if the object can be accepted, creates a new view instance and inserts the object before or after the reference CMButtonPanel. To insert an object into an empty listPanel or at the end of the listPanel, the reference CMButtonPanel should be null.


linkDragObjectToCurrentPane

public boolean linkDragObjectToCurrentPane(nectar.record.Record record,
                                           CMButtonPanel dropPanel)