| javax.swing.JDialog org.netbeans.modules.sql.framework.ui.view.graph.CastAsDialog
CastAsDialog | public class CastAsDialog extends JDialog implements ActionListener(Code) | | Configures type, precision and scale (as appropriate) of a cast as operator.
author: Jonathan Giron version: $Revision$ |
Inner Class :class TypeChangeItemListener implements ItemListener | |
Inner Class :class ButtonKeyAdapter extends KeyAdapter | |
Constructor Summary | |
public | CastAsDialog(Frame parent, String title, boolean modal) Creates a new LiteralDialog object. |
Method Summary | |
public void | actionPerformed(ActionEvent e) | public int | getJdbcType() Gets user-selected JDBC datatype for this cast-as operator. | public int | getPrecision() Gets current precision value in dialog. | public int | getScale() Gets current scale value in dialog. | public boolean | isCanceled() Indicates whether user canceled this dialog box. | public static void | main(String args) Exposes standalone test entry-point. | public void | setJdbcType(int newType) Sets user-selected JDBC datatype for this cast-as operator. | public void | setJdbcTypeEditable(boolean editable) | public void | setPrecision(int newValue) Sets current precision value in dialog, subject to model limits. | public void | setScale(int newValue) Sets current scale value in dialog, subject to model limits. | public void | show() |
DISPLAY_NAMES | final public static String[] DISPLAY_NAMES(Code) | | |
CastAsDialog | public CastAsDialog(Frame parent, String title, boolean modal)(Code) | | Creates a new LiteralDialog object.
Parameters: title - Parameters: modal - |
actionPerformed | public void actionPerformed(ActionEvent e)(Code) | | Parameters: e - ActionEvent to handle. |
getJdbcType | public int getJdbcType()(Code) | | Gets user-selected JDBC datatype for this cast-as operator.
JDBC datatype, as enumerated in java.sql.Types |
getPrecision | public int getPrecision()(Code) | | Gets current precision value in dialog.
current precision - possibly 0 if selected datatype does not allow for a precision to be specified |
getScale | public int getScale()(Code) | | Gets current scale value in dialog.
current scale - possibly 0 if selected datatype does not allow for a precision to be specified |
isCanceled | public boolean isCanceled()(Code) | | Indicates whether user canceled this dialog box.
true if user canceled dialog box, false otherwise. |
main | public static void main(String args)(Code) | | Exposes standalone test entry-point.
Parameters: args - command-line arguments |
setJdbcType | public void setJdbcType(int newType)(Code) | | Sets user-selected JDBC datatype for this cast-as operator.
Parameters: newType - new JDBC datatype, as enumerated in java.sql.Types |
setJdbcTypeEditable | public void setJdbcTypeEditable(boolean editable)(Code) | | |
setPrecision | public void setPrecision(int newValue)(Code) | | Sets current precision value in dialog, subject to model limits.
Parameters: newValue - new value for precision |
setScale | public void setScale(int newValue)(Code) | | Sets current scale value in dialog, subject to model limits.
Parameters: newValue - new value for scale |
|
|