Save This Page
Home » openjdk-7 » net.sourceforge » jbird » swing » [javadoc | source]
net.sourceforge.jbird.swing
public class: JTableDialog [javadoc | source]
java.lang.Object
   java.awt.Component
      java.awt.Container
         java.awt.Window
            java.awt.Dialog
               javax.swing.JDialog
                  net.sourceforge.jbird.swing.JTableDialog

All Implemented Interfaces:
    HasGetTransferHandler, Accessible, RootPaneContainer, WindowConstants, MenuContainer, Serializable, ImageObserver

Direct Known Subclasses:
    ChecklistDialog, SavableTableDialog, SpeciesTableDialog

A simple class for instantly obtaining a JDialog that presents a JTable.

The class provides a mechanism for nullifying objects referenced by the class when the dialog is dismissed. Call setNullifyOnClose to cause the class' nullify method to be invoked upon closing. That will nullify fields held within the class. No effort is made to nullify the current table or its table data model. To nullify objects that implement the Nullify interface, call setToNullify. The objects will be nullified whenever the nullify method is invoked.

Field Summary
protected  JScrollPane scroller     
protected  JTable table     
protected  boolean nullify_on_close    Boolean flag that indicates whether nullify method will be called automatically on window close.
    since: J-Bird - 0.3.0
 
 Nullify[] to_nullify    An array of objects that implement the Nullify interface to be nullified when the nullify method of this class is invoked. Use setToNullify to populate. @since J-Bird 0.3.0 
Fields inherited from javax.swing.JDialog:
rootPane,  rootPaneCheckingEnabled,  accessibleContext
Fields inherited from java.awt.Dialog:
resizable,  undecorated,  DEFAULT_MODALITY_TYPE,  modal,  modalityType,  modalDialogs,  blockedWindows,  title,  isInHide,  isInDispose
Fields inherited from java.awt.Window:
warningString,  icons,  systemSyncLWRequests,  syncLWRequests,  beforeFirstShow,  OPENED,  state,  ownedWindowList,  showWithParent,  modalBlocker,  modalExclusionType,  windowListener,  windowStateListener,  windowFocusListener,  inputContext,  isInShow,  isTrayIconWindow,  anchor
Fields inherited from java.awt.Container:
ncomponents,  component,  layoutMgr,  containerListener,  listeningChildren,  listeningBoundsChildren,  descendantsCount,  INCLUDE_SELF,  SEARCH_HEAVYWEIGHTS,  modalComp,  modalAppContext
Fields inherited from java.awt.Component:
TOP_ALIGNMENT,  CENTER_ALIGNMENT,  BOTTOM_ALIGNMENT,  RIGHT_ALIGNMENT,  LEFT_ALIGNMENT,  treeLock,  x,  y,  width,  height,  foreground,  background,  font,  peerFont,  cursor,  locale,  ignoreRepaint,  visible,  enabled,  valid,  dropTarget,  popups,  name,  nameExplicitlySet,  focusable,  isFocusTraversableOverridden,  focusTraversalKeys,  focusTraversalKeysEnabled,  minSize,  prefSize,  newEventsOnly,  eventMask,  changeSupport,  isPacked,  componentSerializedDataVersion,  accessibleContext,  componentListener,  focusListener,  keyListener,  mouseListener,  mouseMotionListener,  mouseWheelListener,  inputMethodListener,  hierarchyListener,  hierarchyBoundsListener,  parent,  peer,  orientation,  graphicsConfig,  bufferStrategy
Constructor:
 public JTableDialog(Frame owner) 
    Basic instantiation. Configure with either setTable or setModel (for which a JTable object will automatically be generated. @since J-Bird 0.3.0
 public JTableDialog(Dialog owner) 
    Basic instantiation. Configure with either setTable or setModel (for which a JTable object will automatically be generated. @since J-Bird 0.3.0
 public JTableDialog(Frame owner,
    JTable table) 
 public JTableDialog(Dialog owner,
    JTable table) 
    since: J-Bird - 0.3.0
 public JTableDialog(Frame owner,
    TableModel model) 
 public JTableDialog(Dialog owner,
    TableModel model) 
    since: J-Bird - 0.3.0
 public JTableDialog(Frame owner,
    JScrollPane scrollpane,
    JTable table) 
    Use for tables that are already in a JScrollPane. Pass the table itself, too, so that the table can be contacted.
    since: J-Bird - 0.1.3
 public JTableDialog(Dialog owner,
    JScrollPane scrollpane,
    JTable table) 
    Use for tables that are already in a JScrollPane. Pass the table itself, too, so that the table can be contacted.
    since: J-Bird - 0.3.0
Method from net.sourceforge.jbird.swing.JTableDialog Summary:
center,   center,   getModel,   getTable,   isNullifyOnClose,   nullify,   nullifyThread,   setModel,   setNullifyOnClose,   setScrollerTable,   setTable,   setToNullify,   setupContent,   setupDefaultTable
Methods from javax.swing.JDialog:
addImpl,   createRootPane,   dialogInit,   getAccessibleContext,   getContentPane,   getDefaultCloseOperation,   getGlassPane,   getGraphics,   getJMenuBar,   getLayeredPane,   getRootPane,   getTransferHandler,   isDefaultLookAndFeelDecorated,   isRootPaneCheckingEnabled,   paramString,   processWindowEvent,   remove,   repaint,   setContentPane,   setDefaultCloseOperation,   setDefaultLookAndFeelDecorated,   setGlassPane,   setJMenuBar,   setLayeredPane,   setLayout,   setRootPane,   setRootPaneCheckingEnabled,   setTransferHandler,   update
Methods from java.awt.Dialog:
addNotify,   blockWindow,   blockWindows,   checkShouldBeBlocked,   constructComponentName,   doDispose,   getAccessibleContext,   getModalityType,   getTitle,   hide,   interruptBlocking,   isModal,   isModal_NoClientCode,   isResizable,   isUndecorated,   modalHide,   modalShow,   modalityPopped,   modalityPushed,   paramString,   setModal,   setModalityType,   setResizable,   setTitle,   setUndecorated,   setVisible,   shouldBlock,   show,   toBack,   unblockWindow
Methods from java.awt.Window:
addNotify,   addOwnedWindow,   addPropertyChangeListener,   addPropertyChangeListener,   addWindowFocusListener,   addWindowListener,   addWindowStateListener,   adjustDecendantsOnParent,   adjustListeningChildrenOnParent,   applyCompoundShape,   applyCurrentShape,   applyResourceBundle,   applyResourceBundle,   canContainFocusOwner,   clearMostRecentFocusOwnerOnHide,   closeSplashScreen,   connectOwnedWindow,   constructComponentName,   createBufferStrategy,   createBufferStrategy,   deliverMouseWheelToAncestor,   dispatchEventImpl,   dispatchMouseWheelToAncestor,   dispose,   disposeImpl,   doDispose,   eventEnabled,   getAccessibleContext,   getAllUnblockedWindows,   getAllWindows,   getBufferStrategy,   getContainer,   getDocumentRoot,   getFocusCycleRootAncestor,   getFocusOwner,   getFocusTraversalKeys,   getFocusableWindowState,   getGraphicsConfiguration,   getIconImages,   getInputContext,   getListeners,   getLocale,   getLocationOnWindow,   getModalBlocker,   getModalExclusionType,   getMostRecentFocusOwner,   getOwnedWindows,   getOwnedWindows_NoClientCode,   getOwner,   getOwner_NoClientCode,   getOwnerlessWindows,   getTemporaryLostComponent,   getToolkit,   getWarningString,   getWindowFocusListeners,   getWindowListeners,   getWindowStateListeners,   getWindows,   hide,   isActive,   isAlwaysOnTop,   isAlwaysOnTopSupported,   isAutoRequestFocus,   isFocusCycleRoot,   isFocusableWindow,   isFocused,   isLocationByPlatform,   isModalBlocked,   isModalExcluded,   isRecursivelyVisible,   isShowing,   mixOnReshaping,   pack,   postEvent,   postProcessKeyEvent,   postWindowEvent,   preProcessKeyEvent,   processEvent,   processWindowEvent,   processWindowFocusEvent,   processWindowStateEvent,   removeNotify,   removeOwnedWindow,   removeWindowFocusListener,   removeWindowListener,   removeWindowStateListener,   resetGC,   reshape,   setAlwaysOnTop,   setAutoRequestFocus,   setBounds,   setBounds,   setClientSize,   setCursor,   setFocusCycleRoot,   setFocusableWindowState,   setIconImage,   setIconImages,   setLocationByPlatform,   setLocationRelativeTo,   setMinimumSize,   setModalBlocked,   setModalExclusionType,   setSize,   setSize,   setTemporaryLostComponent,   setVisible,   show,   toBack,   toBack_NoClientCode,   toFront,   toFront_NoClientCode,   updateChildFocusableWindowState,   updateChildrenBlocking
Methods from java.awt.Container:
add,   add,   add,   add,   add,   addContainerListener,   addImpl,   addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   adjustDecendantsOnParent,   adjustDescendants,   adjustListeningChildren,   applyComponentOrientation,   areFocusTraversalKeysSet,   canContainFocusOwner,   checkGD,   clearCurrentFocusCycleRootOnHide,   clearMostRecentFocusOwnerOnHide,   containsFocus,   countComponents,   countHierarchyMembers,   createChildHierarchyEvents,   createHierarchyEvents,   decreaseComponentCount,   deliverEvent,   dispatchEventImpl,   dispatchEventToSelf,   doLayout,   eventEnabled,   findComponentAt,   findComponentAt,   findComponentAt,   findComponentAtImpl,   getAccessibleAt,   getAccessibleChild,   getAccessibleChildrenCount,   getAlignmentX,   getAlignmentY,   getComponent,   getComponentAt,   getComponentAt,   getComponentCount,   getComponentZOrder,   getComponents,   getComponents_NoClientCode,   getContainerListeners,   getDropTargetEventTarget,   getFocusTraversalKeys,   getFocusTraversalPolicy,   getHeavyweightContainer,   getInsets,   getLayout,   getListeners,   getMaximumSize,   getMinimumSize,   getMouseEventTarget,   getMousePosition,   getPreferredSize,   getTraversalRoot,   increaseComponentCount,   initializeFocusTraversalKeys,   insets,   invalidate,   invalidateTree,   isAncestorOf,   isFocusCycleRoot,   isFocusCycleRoot,   isFocusTraversalPolicyProvider,   isFocusTraversalPolicySet,   isSameOrAncestorOf,   layout,   lightweightPaint,   lightweightPrint,   list,   list,   locate,   minimumSize,   mixOnHiding,   mixOnReshaping,   mixOnShowing,   mixOnZOrderChanging,   numListening,   paint,   paintComponents,   paintHeavyweightComponents,   paramString,   postProcessKeyEvent,   postsOldMouseEvents,   preProcessKeyEvent,   preferredSize,   print,   printComponents,   printHeavyweightComponents,   processContainerEvent,   processEvent,   proxyEnableEvents,   recursiveApplyCurrentShape,   recursiveApplyCurrentShape,   recursiveApplyCurrentShape,   recursiveSubtractAndApplyShape,   recursiveSubtractAndApplyShape,   recursiveSubtractAndApplyShape,   remove,   remove,   removeAll,   removeContainerListener,   removeNotify,   setComponentZOrder,   setFocusCycleRoot,   setFocusTraversalKeys,   setFocusTraversalPolicy,   setFocusTraversalPolicyProvider,   setFont,   setLayout,   transferFocusDownCycle,   update,   validate,   validateTree
Methods from java.awt.Component:
action,   add,   addComponentListener,   addFocusListener,   addHierarchyBoundsListener,   addHierarchyListener,   addInputMethodListener,   addKeyListener,   addMouseListener,   addMouseMotionListener,   addMouseWheelListener,   addNotify,   addPropertyChangeListener,   addPropertyChangeListener,   applyComponentOrientation,   areFocusTraversalKeysSet,   bounds,   checkImage,   checkImage,   coalesceEvents,   contains,   contains,   createImage,   createImage,   createVolatileImage,   createVolatileImage,   deliverEvent,   disable,   disableEvents,   dispatchEvent,   dispatchEventImpl,   doLayout,   enable,   enable,   enableEvents,   enableInputMethods,   eventTypeEnabled,   findNextFocusComponent,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   firePropertyChange,   generateName,   getAccessibleContext,   getAlignmentX,   getAlignmentY,   getBackground,   getBounds,   getBounds,   getColorModel,   getComponentAt,   getComponentAt,   getComponentListeners,   getComponentOrientation,   getCursor,   getDropTarget,   getFocusCycleRootAncestor,   getFocusListeners,   getFocusTraversalKeys,   getFocusTraversalKeysEnabled,   getFont,   getFontMetrics,   getForeground,   getGraphics,   getGraphicsConfiguration,   getGraphicsConfigurationImpl,   getHeight,   getHierarchyBoundsListeners,   getHierarchyListeners,   getIgnoreRepaint,   getInputContext,   getInputMethodListeners,   getInputMethodRequests,   getKeyListeners,   getListeners,   getLocale,   getLocation,   getLocation,   getLocationOnScreen,   getMaximumSize,   getMinimumSize,   getMouseListeners,   getMouseMotionListeners,   getMouseWheelListeners,   getName,   getParent,   getPeer,   getPreferredSize,   getPropertyChangeListeners,   getPropertyChangeListeners,   getSize,   getSize,   getToolkit,   getTreeLock,   getWidth,   getX,   getY,   gotFocus,   handleEvent,   hasFocus,   hide,   imageUpdate,   inside,   invalidate,   isBackgroundSet,   isCursorSet,   isDisplayable,   isDoubleBuffered,   isEnabled,   isFocusCycleRoot,   isFocusOwner,   isFocusTraversable,   isFocusable,   isFontSet,   isForegroundSet,   isLightweight,   isOpaque,   isShowing,   isValid,   isVisible,   keyDown,   keyUp,   layout,   list,   list,   list,   list,   list,   locate,   location,   lostFocus,   minimumSize,   mouseDown,   mouseDrag,   mouseEnter,   mouseExit,   mouseMove,   mouseUp,   move,   nextFocus,   paint,   paintAll,   paramString,   postEvent,   preferredSize,   prepareImage,   prepareImage,   print,   printAll,   processComponentEvent,   processEvent,   processFocusEvent,   processHierarchyBoundsEvent,   processHierarchyEvent,   processInputMethodEvent,   processKeyEvent,   processMouseEvent,   processMouseMotionEvent,   processMouseWheelEvent,   remove,   removeComponentListener,   removeFocusListener,   removeHierarchyBoundsListener,   removeHierarchyListener,   removeInputMethodListener,   removeKeyListener,   removeMouseListener,   removeMouseMotionListener,   removeMouseWheelListener,   removeNotify,   removePropertyChangeListener,   removePropertyChangeListener,   repaint,   repaint,   repaint,   repaint,   requestFocus,   requestFocus,   requestFocusInWindow,   requestFocusInWindow,   reshape,   resize,   resize,   setBackground,   setBounds,   setBounds,   setComponentOrientation,   setCursor,   setDropTarget,   setEnabled,   setFocusTraversalKeys,   setFocusTraversalKeysEnabled,   setFocusable,   setFont,   setForeground,   setIgnoreRepaint,   setLocale,   setLocation,   setLocation,   setName,   setPeer,   setSize,   setSize,   setVisible,   show,   show,   size,   toString,   transferFocus,   transferFocusBackward,   transferFocusUpCycle,   translateEvent,   update,   validate
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from net.sourceforge.jbird.swing.JTableDialog Detail:
 public final  void center(Dimension dim) 
 public final  void center(int width,
    int height) 
    Set the dialog to the given size and center it on the the screen.
 public TableModel getModel() 
 public JTable getTable() 
 public final boolean isNullifyOnClose() 
    Indicates whether nullify is called when the window closes. By default it will not.
 public  void nullify() 
    Called automatically when window-close icon pushed if setNullifyOnClose has been called with argument true. Can also be called manually.
 public  void nullifyThread() 
    Launch nullify method as a separate thread.
 public final  void setModel(TableModel model) 
    Use the TableModel provided. Note that JTableDialog does not yet have JTable object, it will generate one to display the model.
 public final  void setNullifyOnClose(boolean to) 
    If true the nullify method will be called automatically when when close icon is pushed.
 public final  void setScrollerTable(JScrollPane newscroller,
    JTable newtable) 
    Replace the current scroller that also contains the given table with that given. OK to use if no scroller and table have been set.
 public final  void setTable(JTable table) 
    Sets the viewport view of the current scroller to be the table that is passed.
 public  void setToNullify(Nullify[] tonullify) 
    Provide an array of objects that implement the Nullify interface to nullify when the nullify method is called. That will happen automatically only if setNullifyOnClose has been called with the argument true.
 protected final  void setupContent() 
 protected final  void setupDefaultTable()