public class RuleHelp
extends javax.swing.JDialog
implements java.awt.event.ActionListener
RuleHelp
class provides information about the current rule.
title: SystemCoreExpLib
description:
copyright: (c) 2013 thomas kaffka, born at 11/08/1959 in düsseldorf - germany , all rights reserved.
Modifier and Type | Field and Description |
---|---|
static int |
BUTTON_CHOOSE |
static int |
BUTTON_DELETE |
static int |
BUTTON_NO |
static int |
BUTTON_USE |
static int |
BUTTON_USE_AND_DELETE |
static int |
BUTTON_USE_LIST_AND_DELETE |
int |
control_column |
int |
control_hight |
int |
control_width |
int |
label_column |
int |
label_hight |
int |
label_line |
int |
label_line_count |
int |
label_width |
n4e.core.controls.AWTableModel |
modRuleData |
boolean |
set_horizontal_scrollbar |
javax.swing.JScrollPane |
tableScrollPane |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
RuleHelp(javax.swing.JFrame exp,
n4e.core.screen.DataSite site,
java.lang.String rule_uid,
long ruleid,
java.lang.String headline,
Tool4ExpertSystem expsys,
java.util.ArrayList messages,
n4e.core.list.List4SysUser sysUser,
java.lang.String database)
The constructor
RuleHelp 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. |
javax.swing.JLabel |
createLabel(java.awt.Container pnl,
java.lang.String text)
The method
createLabel creates a label object. |
javax.swing.JLabel |
createLabelField(java.awt.Container pnl,
int column,
int width,
boolean numeric)
The method
createLabelField creates a label object as a data field. |
n4e.core.controls.AWTableModel |
createTable(java.lang.String name,
java.awt.Container pnl,
java.util.ArrayList data_list,
java.util.ArrayList field_list,
int column,
int row,
int width,
int height,
int work_delete,
java.lang.String flag,
java.lang.String flag2,
java.util.Hashtable status,
java.util.Hashtable column_width)
The method
createTable creates a table object. |
java.lang.String |
getCodomainByUid(java.lang.String uid)
The method
getCodomainByUid fetch's the codomain
from the database. |
java.lang.String |
getKeyWordNameByUid(java.lang.String key_uid)
The method
getKeyWordNameByUid fetches the name of key word from database. |
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, dispose, 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, setFont, 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 static final int BUTTON_CHOOSE
public static final int BUTTON_USE
public static final int BUTTON_USE_AND_DELETE
public static final int BUTTON_USE_LIST_AND_DELETE
public static final int BUTTON_DELETE
public static final int BUTTON_NO
public n4e.core.controls.AWTableModel modRuleData
public javax.swing.JScrollPane tableScrollPane
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 boolean set_horizontal_scrollbar
public RuleHelp(javax.swing.JFrame exp, n4e.core.screen.DataSite site, java.lang.String rule_uid, long ruleid, java.lang.String headline, Tool4ExpertSystem expsys, java.util.ArrayList messages, n4e.core.list.List4SysUser sysUser, java.lang.String database)
RuleHelp
creates a new instance(object) of the class.exp
- the calling frame.site
- the siterule_uid
- the uniqueid of the rule.ruleid
- the rule id.headline
- the head line.expsys
- the expert system.messages
- the messages.sysUser
- the system user.database
- the database name.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
processes the button clicks.actionPerformed
in interface java.awt.event.ActionListener
e
- the event.public javax.swing.JLabel createLabel(java.awt.Container pnl, java.lang.String text)
createLabel
creates a label object.pnl
- the current panel object.text
- the label text.public javax.swing.JLabel createLabelField(java.awt.Container pnl, int column, int width, boolean numeric)
createLabelField
creates a label object as a data field.pnl
- the current panel object.column
- the site column, if 0 then take the control_column data field.width
- the width of the label field.numeric
- if true, set alignment to right.public n4e.core.controls.AWTableModel createTable(java.lang.String name, java.awt.Container pnl, java.util.ArrayList data_list, java.util.ArrayList field_list, int column, int row, int width, int height, int work_delete, java.lang.String flag, java.lang.String flag2, java.util.Hashtable status, java.util.Hashtable column_width) throws java.lang.Exception
createTable
creates a table object.name
- the name of the table.pnl
- the current panel object.data_list
- list with the the current database access object.field_list
- the field list for the columns.column
- the column of the table.row
- the row of the table.width
- the width of the table.height
- the height of the table.work_delete,
- if true work and delete buttons are added.flag
- to identify the model.flag2
- to identify the model.status
- the status of the table cells.column_width
- the width of a column.java.lang.Exception
- if errorpublic java.lang.String getCodomainByUid(java.lang.String uid) throws java.lang.Exception
getCodomainByUid
fetch's the codomain
from the database.uid
- the uniqueid of current kew word.java.lang.Exception
- if error.public java.lang.String getKeyWordNameByUid(java.lang.String key_uid) throws java.lang.Exception
getKeyWordNameByUid
fetches the name of key word from database.
Be aware of that this function is redundant to the web system.key_uid
- the uniqueid of the keyword.java.lang.Exception
- if error.