|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Dialog
|
+--javax.swing.JDialog
|
+--rsramanujam.ui.RSRFontDialog
RSRFontDialog - A Standard font dialog implementation using Java.
| Inner classes inherited from class javax.swing.JDialog |
javax.swing.JDialog.AccessibleJDialog |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AWTTreeLock |
| Field Summary | |
private javax.swing.JButton |
g_bCancel
|
private javax.swing.JButton |
g_bOK
|
private javax.swing.JPanel |
g_JDialogContentPane
|
private javax.swing.JLabel |
g_lFontName
|
private javax.swing.JLabel |
g_lFontSizes
|
private javax.swing.JLabel |
g_lFontStyle
|
private javax.swing.JList |
g_listFontNames
|
private javax.swing.JList |
g_listFontSizes
|
private javax.swing.JList |
g_listFontStyles
|
private javax.swing.JLabel |
g_lPreview
|
private javax.swing.JPanel |
g_pFontNames
|
private javax.swing.JPanel |
g_pFontSizes
|
private javax.swing.JPanel |
g_pFontStyles
|
private javax.swing.JScrollPane |
g_scrFontName
|
private javax.swing.JScrollPane |
g_scrFontSize
|
private javax.swing.JScrollPane |
g_scrFontStyles
|
private java.lang.String[] |
g_strFontNamesArr
|
private java.util.Vector |
g_vFontSizes
|
private java.util.Vector |
g_vFontStyles
|
private int |
option
|
private java.awt.Font |
selectedFont
|
private java.lang.String |
selectedFontName
|
private int |
selectedFontSize
|
private int |
selectedFontStyle
|
| Fields inherited from class javax.swing.JDialog |
accessibleContext,
defaultCloseOperation,
rootPane,
rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Dialog |
base,
keepBlocking,
modal,
nameCounter,
resizable,
serialVersionUID,
title |
| Fields inherited from class java.awt.Window |
active,
base,
focusMgr,
inputContext,
nameCounter,
nativeActive,
OPENED,
ownedWindowList,
serialVersionUID,
state,
warningString,
weakThis,
windowListener,
windowSerializedDataVersion |
| Fields inherited from class java.awt.Container |
component,
containerListener,
containerSerializedDataVersion,
dispatcher,
layoutMgr,
maxSize,
ncomponents,
serialVersionUID |
| Fields inherited from class java.awt.Component |
actionListenerK,
adjustmentListenerK,
appContext,
assert,
background,
BOTTOM_ALIGNMENT,
CENTER_ALIGNMENT,
changeSupport,
componentListener,
componentListenerK,
componentOrientation,
componentSerializedDataVersion,
containerListenerK,
cursor,
dropTarget,
enabled,
eventMask,
focusListener,
focusListenerK,
font,
foreground,
hasFocus,
height,
incRate,
inputMethodListener,
inputMethodListenerK,
isInc,
isPacked,
itemListenerK,
keyListener,
keyListenerK,
LEFT_ALIGNMENT,
locale,
LOCK,
minSize,
mouseListener,
mouseListenerK,
mouseMotionListener,
mouseMotionListenerK,
name,
nameExplicitlySet,
newEventsOnly,
ownedWindowK,
parent,
peer,
peerFont,
popups,
prefSize,
RIGHT_ALIGNMENT,
serialVersionUID,
textListenerK,
TOP_ALIGNMENT,
valid,
visible,
width,
windowListenerK,
x,
y |
| Fields inherited from interface rsramanujam.uis.RSRConstants |
CANCEL_OPTION,
OK_OPTION |
| Constructor Summary | |
RSRFontDialog()
|
|
RSRFontDialog(javax.swing.JDialog parent)
|
|
RSRFontDialog(javax.swing.JFrame parent)
|
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occurs. |
private javax.swing.JButton |
getbCancel()
Return the bCancel property value. |
private javax.swing.JButton |
getbOK()
Return the bOK property value. |
java.util.Vector |
getG_vFontSizes()
This method returns a vector of primitive integers Creation date: (1/13/2003 1:59:43 PM) |
java.util.Vector |
getG_vFontStyles()
Insert the method's description here. |
private javax.swing.JPanel |
getJDialogContentPane()
Return the JDialogContentPane property value. |
private javax.swing.JLabel |
getlFontName()
Return the lFontName property value. |
private javax.swing.JLabel |
getlFontSizes()
Return the lFontSizes property value. |
private javax.swing.JLabel |
getlFontStyle()
Return the lFontStyle property value. |
private javax.swing.JList |
getlistFontNames()
Return the listFontNames property value. |
private javax.swing.JList |
getlistFontSizes()
Return the listFontSizes property value. |
private javax.swing.JList |
getlistFontStyles()
Return the listFontStyles property value. |
private javax.swing.JLabel |
getlPreview()
Return the lPreview property value. |
int |
getOption()
This method returns whether OK was pressed or Cancel was pressed as an integer. |
private javax.swing.JPanel |
getpFontNames()
Return the pFontNames property value. |
private javax.swing.JPanel |
getpFontSizes()
Return the pFontSizes property value. |
private javax.swing.JPanel |
getpFontStyles()
Return the pFontStyles property value. |
private javax.swing.JScrollPane |
getscrFontName()
Return the scrFontName property value. |
private javax.swing.JScrollPane |
getscrFontSize()
Return the scrFontSize property value. |
private javax.swing.JScrollPane |
getscrFontStyles()
Return the scrFontStyles property value. |
java.awt.Font |
getSelectedFont()
This method returns the font selected from the dialog Pressing OK will return the selected font. |
java.lang.String |
getSelectedFontName()
This method returns the selected font name Creation date: (1/13/2003 1:57:33 PM) |
int |
getSelectedFontSize()
This method returns the selected size for the font Creation date: (1/13/2003 1:57:33 PM) |
int |
getSelectedFontStyle()
This method returns the selected style for the font. |
private void |
initialize()
Initialize the class. |
static void |
main(java.lang.String[] args)
main entrypoint - starts the part when it is run as an application |
private void |
notifyException(java.lang.Throwable exception)
Called whenever the part throws an exception. |
void |
setG_vFontSizes(java.util.Vector newG_vFontSizes)
Insert the method's description here. |
void |
setG_vFontStyles(java.util.Vector newG_vFontStyles)
Insert the method's description here. |
private void |
setOption(int newOption)
This method sets whether the user pressed OK or Cancel by referring to them using the constants OK_OPTION and CANCEL_OPTION respectively of the interface RSRConstants |
private void |
setSelectedFont(java.awt.Font newSelectedFont)
Insert the method's description here. |
private void |
setSelectedFontName(java.lang.String newSelectedFontName)
Insert the method's description here. |
private void |
setSelectedFontSize(int newSelectedFontSize)
Insert the method's description here. |
private void |
setSelectedFontStyle(int newSelectedFontStyle)
Insert the method's description here. |
private void |
startup()
This method assigns listeners to the lists and buttons and populates the lists with the required data. |
void |
valueChanged(javax.swing.event.ListSelectionEvent e)
This method will set the font to the selected font as and when a change is made to the list |
| Methods inherited from class javax.swing.JDialog |
addImpl,
createRootPane,
createRootPaneException,
dialogInit,
getAccessibleContext,
getContentPane,
getDefaultCloseOperation,
getGlassPane,
getJMenuBar,
getLayeredPane,
getRootPane,
isRootPaneCheckingEnabled,
paramString,
processKeyEvent,
processWindowEvent,
remove,
setContentPane,
setDefaultCloseOperation,
setGlassPane,
setJMenuBar,
setLayeredPane,
setLayout,
setLocationRelativeTo,
setRootPane,
setRootPaneCheckingEnabled,
update |
| Methods inherited from class java.awt.Dialog |
|
| Methods inherited from class java.awt.Window |
addOwnedWindow,
addWindowListener,
applyResourceBundle,
applyResourceBundle,
connectOwnedWindow,
dispatchEventImpl,
eventEnabled,
finalize,
getFocusOwner,
getInputContext,
getLocale,
getOwnedWindows,
getOwner,
getToolkit,
getWarningString,
isActive,
isShowing,
nextFocus,
ownedInit,
pack,
postEvent,
postProcessKeyEvent,
postWindowEvent,
preProcessKeyEvent,
processEvent,
readObject,
removeOwnedWindow,
removeWindowListener,
setCursor,
setFocusOwner,
setWarningString,
toBack,
toFront,
transferFocus,
writeObject |
| Methods inherited from class java.awt.Container |
add,
add,
add,
add,
add,
addContainerListener,
applyOrientation,
countComponents,
deliverEvent,
dispatchEventToSelf,
doLayout,
findComponentAt,
findComponentAt,
getAlignmentX,
getAlignmentY,
getComponent,
getComponentAt,
getComponentAt,
getComponentCount,
getComponents_NoClientCode,
getComponents,
getCursorTarget,
getInsets,
getLayout,
getMaximumSize,
getMinimumSize,
getMouseEventTarget,
getPreferredSize,
getWindow,
insets,
invalidate,
invalidateTree,
isAncestorOf,
layout,
lightweightPrint,
list,
list,
locate,
minimumSize,
paint,
paintComponents,
postsOldMouseEvents,
preferredSize,
print,
printComponents,
printOneComponent,
processContainerEvent,
proxyEnableEvents,
proxyRequestFocus,
remove,
removeAll,
removeContainerListener,
removeNotify,
setFont,
updateCursor,
validate,
validateTree |
| Methods inherited from class java.awt.Component |
action,
add,
addComponentListener,
addFocusListener,
addInputMethodListener,
addKeyListener,
addMouseListener,
addMouseMotionListener,
addPropertyChangeListener,
addPropertyChangeListener,
areInputMethodsEnabled,
bounds,
checkImage,
checkImage,
coalesceEvents,
contains,
contains,
createImage,
createImage,
disable,
disableEvents,
dispatchEvent,
enable,
enable,
enableEvents,
enableInputMethods,
firePropertyChange,
getBackground,
getBounds,
getBounds,
getColorModel,
getComponentOrientation,
getCursor,
getDropTarget,
getFont_NoClientCode,
getFont,
getFontMetrics,
getForeground,
getGraphics,
getHeight,
getInputMethodRequests,
getIntrinsicCursor,
getLocation,
getLocation,
getLocationOnScreen,
getName,
getNativeContainer,
getParent_NoClientCode,
getParent,
getPeer,
getSize,
getSize,
getToolkitImpl,
getTreeLock,
getWidth,
getWindowForObject,
getX,
getY,
gotFocus,
handleEvent,
hasFocus,
imageUpdate,
inside,
isDisplayable,
isDoubleBuffered,
isEnabled,
isEnabledImpl,
isFocusTraversable,
isLightweight,
isOpaque,
isValid,
isVisible,
keyDown,
keyUp,
list,
list,
list,
location,
lostFocus,
mouseDown,
mouseDrag,
mouseEnter,
mouseExit,
mouseMove,
mouseUp,
move,
nextFocus,
paintAll,
prepareImage,
prepareImage,
printAll,
processComponentEvent,
processFocusEvent,
processInputMethodEvent,
processMouseEvent,
processMouseMotionEvent,
remove,
removeComponentListener,
removeFocusListener,
removeInputMethodListener,
removeKeyListener,
removeMouseListener,
removeMouseMotionListener,
removePropertyChangeListener,
removePropertyChangeListener,
repaint,
repaint,
repaint,
repaint,
requestFocus,
reshape,
resize,
resize,
setBackground,
setBounds,
setBounds,
setComponentOrientation,
setDropTarget,
setEnabled,
setForeground,
setLocale,
setLocation,
setLocation,
setName,
setSize,
setSize,
setVisible,
show,
size,
toString,
transferFocus |
| Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
| Field Detail |
private javax.swing.JButton g_bCancel
private javax.swing.JButton g_bOK
private javax.swing.JPanel g_JDialogContentPane
private javax.swing.JLabel g_lFontName
private javax.swing.JLabel g_lFontSizes
private javax.swing.JLabel g_lFontStyle
private javax.swing.JList g_listFontNames
private javax.swing.JList g_listFontSizes
private javax.swing.JList g_listFontStyles
private javax.swing.JLabel g_lPreview
private javax.swing.JPanel g_pFontNames
private javax.swing.JPanel g_pFontSizes
private javax.swing.JPanel g_pFontStyles
private javax.swing.JScrollPane g_scrFontName
private javax.swing.JScrollPane g_scrFontSize
private javax.swing.JScrollPane g_scrFontStyles
private java.util.Vector g_vFontStyles
private java.util.Vector g_vFontSizes
private java.lang.String[] g_strFontNamesArr
private java.lang.String selectedFontName
private int selectedFontStyle
private int selectedFontSize
private java.awt.Font selectedFont
private int option
| Constructor Detail |
public RSRFontDialog()
public RSRFontDialog(javax.swing.JDialog parent)
public RSRFontDialog(javax.swing.JFrame parent)
| Method Detail |
public void actionPerformed(java.awt.event.ActionEvent e)
private javax.swing.JButton getbCancel()
private javax.swing.JButton getbOK()
public java.util.Vector getG_vFontSizes()
public java.util.Vector getG_vFontStyles()
private javax.swing.JPanel getJDialogContentPane()
private javax.swing.JLabel getlFontName()
private javax.swing.JLabel getlFontSizes()
private javax.swing.JLabel getlFontStyle()
private javax.swing.JList getlistFontNames()
private javax.swing.JList getlistFontSizes()
private javax.swing.JList getlistFontStyles()
private javax.swing.JLabel getlPreview()
public int getOption()
private javax.swing.JPanel getpFontNames()
private javax.swing.JPanel getpFontSizes()
private javax.swing.JPanel getpFontStyles()
private javax.swing.JScrollPane getscrFontName()
private javax.swing.JScrollPane getscrFontSize()
private javax.swing.JScrollPane getscrFontStyles()
public java.awt.Font getSelectedFont()
public java.lang.String getSelectedFontName()
public int getSelectedFontSize()
public int getSelectedFontStyle()
private void initialize()
public static void main(java.lang.String[] args)
args - java.lang.String[]private void notifyException(java.lang.Throwable exception)
exception - java.lang.Throwablepublic void setG_vFontSizes(java.util.Vector newG_vFontSizes)
newG_vFontSizes - java.util.Vectorpublic void setG_vFontStyles(java.util.Vector newG_vFontStyles)
newG_vFontStyles - java.util.Vectorprivate void setOption(int newOption)
newOption - intprivate void setSelectedFont(java.awt.Font newSelectedFont)
newSelectedFont - java.awt.Fontprivate void setSelectedFontName(java.lang.String newSelectedFontName)
newSelectedFontName - java.lang.Stringprivate void setSelectedFontSize(int newSelectedFontSize)
newSelectedFontSize - intprivate void setSelectedFontStyle(int newSelectedFontStyle)
newSelectedFontStyle - intprivate void startup()
public void valueChanged(javax.swing.event.ListSelectionEvent e)
e - the event that characterizes the change.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||