public class GetData
extends javax.swing.JDialog
implements java.awt.event.ActionListener
GetData
class is the father of get data windows.Modifier and Type | Field and Description |
---|---|
javax.swing.JButton |
btnClose |
java.awt.Container |
c |
javax.swing.JFrame |
call |
int |
control_column |
int |
control_hight |
int |
control_width |
java.util.Hashtable |
curr_uniqueid_list |
java.lang.String |
data_list |
DataSite |
ds |
int |
field_count |
int |
label_column |
int |
label_hight |
int |
label_line |
int |
label_line_count |
int |
label_width |
javax.swing.JLabel |
message |
AWTableModel |
modDataMod |
Tool4Dialog |
t4dialog |
javax.swing.JTable |
tblData |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
GetData(java.lang.String window_name,
DataSite ds,
javax.swing.JFrame call)
The constructor
GetData creates a new instance(object) of the class. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
The method
actionPerformed processes the button clicks. |
void |
callChooseFromTable(java.lang.String tabel_name)
The method
callChooseFromTable performs the choose button functionality,
if use button in table is pressed. |
void |
center()
The method
center centers the window. |
javax.swing.JButton |
createButton(int row,
int col,
int layout,
java.lang.String tool_tip_text)
The method
createButton creates a button object. |
void |
dispose()
The method
dispose closes the window. |
void |
setFont(java.awt.Font font) |
void |
setSiteColor()
The method
changeSiteColor changes the color of the site
and the concerning controls. |
void |
windowInit(n4e.core.database.DbAccessRead data,
java.lang.String field_list)
The method
windowInit common initialization of the window. |
void |
windowInit(n4e.core.database.DbAccessRead data,
java.lang.String query,
java.lang.String field_list,
java.lang.String data_list)
The method
windowInit common initialization of the window. |
void |
windowInit(n4e.core.database.DbAccessRead data,
java.lang.String query,
java.lang.String field_list,
java.lang.String data_list,
boolean get_the_data)
The method
windowInit common initialization of the window. |
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public java.awt.Container c
public javax.swing.JTable tblData
public AWTableModel modDataMod
public javax.swing.JButton btnClose
public javax.swing.JLabel message
public int field_count
public java.lang.String data_list
public DataSite ds
public javax.swing.JFrame call
public java.util.Hashtable curr_uniqueid_list
public Tool4Dialog t4dialog
public int label_column
public int label_line
public int label_line_count
public int label_hight
public int label_width
public int control_column
public int control_hight
public int control_width
public GetData(java.lang.String window_name, DataSite ds, javax.swing.JFrame call)
GetData
creates a new instance(object) of the class.window_name
- the name of the current window.ds
- the calling screen site.call
- the astronomy workbench object.public void setFont(java.awt.Font font)
setFont
in class java.awt.Container
public void windowInit(n4e.core.database.DbAccessRead data, java.lang.String query, java.lang.String field_list, java.lang.String data_list, boolean get_the_data) throws java.lang.Exception
windowInit
common initialization of the window.data
- the read db class to process.query
- to get data from database.field_list
- the filed names to be shown in the table.data_list
- the filed names of the query.get_the_data
- get the data.java.lang.Exception
- if error.public void windowInit(n4e.core.database.DbAccessRead data, java.lang.String query, java.lang.String field_list, java.lang.String data_list) throws java.lang.Exception
windowInit
common initialization of the window.data
- the read db class to process.query
- to get data from database.field_list
- the filed names to be shown in the table.data_list
- the filed names of the query.java.lang.Exception
- if error.public void windowInit(n4e.core.database.DbAccessRead data, java.lang.String field_list) throws java.lang.Exception
windowInit
common initialization of the window.data
- the read db class to process.field_list
- the filed names to be shown in the table.java.lang.Exception
- if error.public void center()
center
centers the window.public void dispose()
dispose
closes the window.dispose
in class java.awt.Window
public void callChooseFromTable(java.lang.String tabel_name) throws java.lang.Exception
callChooseFromTable
performs the choose button functionality,
if use button in table is pressed.tabel_name
- the name of the belonging table.java.lang.Exception
- if errorpublic javax.swing.JButton createButton(int row, int col, int layout, java.lang.String tool_tip_text) throws java.lang.Exception
createButton
creates a button object.row
- the row to be placed on the site.col
- the column to be placed on the site.layout
- the button layout.tool_tip_text
- the text for the toll tip..java.lang.Exception
- if errorpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
processes the button clicks.actionPerformed
in interface java.awt.event.ActionListener
e
- the ActionEvent.public void setSiteColor() throws java.lang.Exception
changeSiteColor
changes the color of the site
and the concerning controls.java.lang.Exception
- if error