Package hipp.com.wappedidpadpro2
Class DoLayout
java.lang.Object
hipp.com.wappedidpadpro2.DoLayout
public class DoLayout
extends java.lang.Object
DoLayout
constructs the layout to add to javax.swing.JFrame.getContextPane()
constructs the layout to add to javax.swing.JFrame.getContextPane()
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDoLayout.ParagraphParagraph
Inner class used to define paragraph structurestatic classDoLayout.RunInner class used to define paragraph structure -
Field Summary
Fields Modifier and Type Field Description java.util.ResourceBundlebundleprivate javax.swing.JComboBox<java.lang.String>cFontNamesprivate javax.swing.JComboBox<java.lang.String>cFontSizesstatic java.lang.StringcharStyleNamestatic DoLayout.Paragraph[]contentprivate WappProTextPanejTxtPjava.util.Localelocalejava.lang.StringmainStyleNameprivate javax.swing.JProgressBarprogressBarstatic javax.swing.JMenuItemredoprivate WAppEditpadPro2theAppstatic javax.swing.JMenuItemundo -
Constructor Summary
Constructors Constructor Description DoLayout(WAppEditpadPro2 _theApp, java.util.ResourceBundle _bundle)construct the layout to add to javax.swing.JFrame.getContextPane() -
Method Summary
Modifier and Type Method Description voidcreateDocumentStyles(javax.swing.text.StyleContext sc)private javax.swing.JMenuBarcreateMenu()private voidcreateMenuItems(javax.swing.JMenu m)private MyToolPanelcreatToolBar()javax.swing.JPaneldoMenuTBarLayout()Layout the Menu and ToolBarjavax.swing.JPaneldoTextPaneLayout()Creates the WappProTextPanejavax.swing.JComboBox<java.lang.String>getFontNames()javax.swing.JComboBox<java.lang.String>getFontSizes()WappProTextPanegetTextPane()private java.lang.String[]tokenize(java.lang.String s)
-
Field Details
-
progressBar
private javax.swing.JProgressBar progressBar -
cFontNames
private javax.swing.JComboBox<java.lang.String> cFontNames -
cFontSizes
private javax.swing.JComboBox<java.lang.String> cFontSizes -
jTxtP
-
locale
public java.util.Locale locale -
bundle
public java.util.ResourceBundle bundle -
theApp
-
undo
public static javax.swing.JMenuItem undo -
redo
public static javax.swing.JMenuItem redo -
mainStyleName
public final java.lang.String mainStyleName- See Also:
- Constant Field Values
-
charStyleName
public static final java.lang.String charStyleName- See Also:
- Constant Field Values
-
content
-
-
Constructor Details
-
DoLayout
construct the layout to add to javax.swing.JFrame.getContextPane()- Parameters:
_theApp-WAppEditpadPro2reference to the Main ApplicationWAppEditpadPro2_bundle-java.util.ResourceBundlereference tojava.util.ResourceBundlejava.util.ResourceBundle defined in WAppEditpadPro2
-
-
Method Details
-
doMenuTBarLayout
public javax.swing.JPanel doMenuTBarLayout()Layout the Menu and ToolBar- Returns:
- a
javax.swing.JPanelwith holds the MenuBar and ToolPanel
-
getTextPane
- Returns:
WappProTextPanethis Class extends the javax.swing.JTextPane
-
createDocumentStyles
public void createDocumentStyles(javax.swing.text.StyleContext sc) -
doTextPaneLayout
public javax.swing.JPanel doTextPaneLayout()Creates the WappProTextPane- Returns:
javax.swing.JPanelholding the WappProTextPane
-
tokenize
private java.lang.String[] tokenize(java.lang.String s) -
createMenuItems
private void createMenuItems(javax.swing.JMenu m) -
createMenu
private javax.swing.JMenuBar createMenu() -
creatToolBar
-
getFontNames
public javax.swing.JComboBox<java.lang.String> getFontNames()- Returns:
javax.swing.JComboBox<String>holding the fontNames
-
getFontSizes
public javax.swing.JComboBox<java.lang.String> getFontSizes()- Returns:
javax.swing.JComboBox<String>holding the fontSizes
-