📄 graphicalcontrolsproperties.java
字号:
varPanel.setVisible(false); setSize(400, 480); setResizable(false); } catch(Exception e) { e.printStackTrace(); } } /** * Adds the panel to the dialog for user input. */ public void showImgPanel(String src, String alt, String align, String height, String hspace, String localsrc, String vspace, String width, String extra) { imgPanel.setName(extra); TabsPanel.add(imgPanel, "Image Properties"); tabs.add("img"); String [] items = {"N/A", "bottom", "middle", "top"}; DefaultComboBoxModel cm = new DefaultComboBoxModel(items); imgalignCombo.setModel(cm); // fillin the values imgsrcText.setText(src); imgaltText.setText(alt); imgheightText.setText(height); imghspaceText.setText(hspace); imglocalsrcText.setText(localsrc); imgvspaceText.setText(vspace); imgwidthText.setText(width); imgalignCombo.setSelectedItem(align); } /** * Adds the panel to the dialog for user input. */ public void showInputPanel(String name, String emptyok, String format, String maxlen, String size, String tabindex, String title, String type, String value, String accesskey, String extra) { inputPanel.setName(extra); TabsPanel.add(inputPanel, "Input Properties"); tabs.add("input"); String[] items = {"N/A", "true", "false"}; DefaultComboBoxModel cm = new DefaultComboBoxModel(items); inputemptyokCombo.setModel(cm); String[] itemsType = {"N/A", "text", "password"}; DefaultComboBoxModel cm2 = new DefaultComboBoxModel(itemsType); inputtypeCombo.setModel(cm2); // fillin the values inputnameText.setText(name); inputemptyokCombo.setSelectedItem(emptyok); inputformatText.setText(format); inputmaxlenText.setText(maxlen); inputsizeText.setText(size); inputtabindexText.setText(tabindex); inputtitleText.setText(title); inputtypeCombo.setSelectedItem(type); inputvalueText.setText(value); inputaccesskeyText.setText(accesskey); } /** * Adds the panel to the dialog for user input. */ public void showTablePanel(String columns, String rows, String align, String title, String extra) { tablePanel.setName(extra); TabsPanel.add(tablePanel, "Table Properties"); tabs.add("table"); String[] items = {"N/A", "left", "center", "right"}; DefaultComboBoxModel cm = new DefaultComboBoxModel(items); tablealignmentCombo.setModel(cm); // fillin the values tablecolumnsText.setText(columns); tablerowsText.setText(rows); tablealignmentCombo.setSelectedItem(align); tabletitleText.setText(title); } /** * Adds the panel to the dialog for user input. */ public void showPPanel(String align, String mode, String extra) { pPanel.setName(extra); TabsPanel.add(pPanel, "Paragraph Properties"); tabs.add("p"); String[] alignItems = {"N/A", "left", "center", "right"}; DefaultComboBoxModel cm = new DefaultComboBoxModel(alignItems); palignCombo.setModel(cm); String[] modeItems = {"N/A", "nowrap", "wrap"}; DefaultComboBoxModel cm2 = new DefaultComboBoxModel(modeItems); pmodeCombo.setModel(cm2); // fillin the values palignCombo.setSelectedItem(align); pmodeCombo.setSelectedItem(mode); } /** * Adds the panel to the dialog for user input. */ public void showPrePanel(String xmlspace, String extra) { prePanel.setName(extra); TabsPanel.add(prePanel, "Pre Properties"); tabs.add("pre"); String[] spaceItems = {"N/A", "preserve", "default"}; DefaultComboBoxModel cm = new DefaultComboBoxModel(spaceItems); prexmlspaceCombo.setModel(cm); // fillin the values prexmlspaceCombo.setSelectedItem(xmlspace); } /** * Adds the panel to the dialog for user input. */ public void showSelectPanel(String name, String iname, String ivalue, String multi, String tabindex, String title, String value, String extra) { selectPanel.setName(extra); TabsPanel.add(selectPanel, "Select Properties"); tabs.add("select"); String[] multiItems = {"N/A", "true", "false"}; DefaultComboBoxModel cm = new DefaultComboBoxModel(multiItems); selectmultiCombo.setModel(cm); // fillin the values selectnameText.setText(name); selectinameText.setText(iname); selectivalueText.setText(ivalue); selectmultiCombo.setSelectedItem(multi); selecttabindexText.setText(tabindex); selecttitleText.setText(title); selectvalueText.setText(value); } /** * Adds the panel to the dialog for user input. */ public void showOptionPanel(String url, String title, String value, String extra) { optionPanel.setName(extra); TabsPanel.add(optionPanel, "Option Properties"); tabs.add("option"); // fillin the values optiononpickText.setText(url); optiontitleText.setText(title); optionvalueText.setText(value); } /** * Adds the panel to the dialog for user input. */ public void showOptionGroupPanel(String title, String extra) { optiongroupPanel.setName(extra); TabsPanel.add(optiongroupPanel, "Option Group Properties"); tabs.add("optgroup"); // fillin the values optiongrouptitleText.setText(title); } /** * Adds the panel to the dialog for user input. */ public void showFieldsetPanel(String title, String extra) { fieldsetPanel.setName(extra); TabsPanel.add(fieldsetPanel, "Fieldset Properties"); tabs.add("fieldset"); // fillin the values fieldsettitleText.setText(title); } /** * Adds the panel to the dialog for user input. */ public void showTimerPanel(String value, String name, String extra) { timerPanel.setName(extra); TabsPanel.add(timerPanel, "Timer Properties"); tabs.add("timer"); // fillin the values timervalueText.setText(value); timernameText.setText(name); } /** * Adds the panel to the dialog for user input. */ public void showPostfieldPanel(String value, String name, String extra) { postfieldPanel.setName(extra); TabsPanel.add(postfieldPanel, "Postfield Properties"); tabs.add("postfield"); // fillin the values postfieldvalueText.setText(value); postfieldnameText.setText(name); } /** * Adds the panel to the dialog for user input. */ public void showSetvarPanel(String value, String name, String extra) { setvarPanel.setName(extra); TabsPanel.add(setvarPanel, "Variable Properties"); tabs.add("setvar"); // fillin the values setvarvalueText.setText(value); setvarnameText.setText(name); } /** * Adds the panel to the dialog for user input. */ public void showOneventPanel(String event, String extra) { oneventPanel.setName(extra); TabsPanel.add(oneventPanel, "OnEvent Properties"); tabs.add("onevent"); String[] items = {"N/A", "onenterbackward", "onenterforward", "onpick", "ontimer"}; DefaultComboBoxModel cm = new DefaultComboBoxModel(items); oneventCombo.setModel(cm); // fillin the values oneventCombo.setSelectedItem(event); } /** * Adds the panel to the dialog for user input. */ public void showGoPanel(String href, String charset, String method, String sendref, String cache, String enctype, String extra) { goPanel.setName(extra); TabsPanel.add(goPanel, "Go Properties"); tabs.add("go"); String[] methodItems = {"N/A", "post", "get"}; DefaultComboBoxModel cm = new DefaultComboBoxModel(methodItems); gomethodCombo.setModel(cm); String[] sendItems= {"N/A", "true", "false"}; DefaultComboBoxModel cm2 = new DefaultComboBoxModel(sendItems); gosendrefCombo.setModel(cm2); String[] cacheItems= {"N/A", "no-cache"}; DefaultComboBoxModel cm3 = new DefaultComboBoxModel(cacheItems); gocachecontrolCombo.setModel(cm3); String[] enctypeItems= {"N/A", "application/x-www-form-urlencoded", "multipart/form-data"}; DefaultComboBoxModel cm4 = new DefaultComboBoxModel(enctypeItems); goenctypeCombo.setModel(cm4); // fillin the values gohrefText.setText(href); gocharText.setText(charset); gomethodCombo.setSelectedItem(method); gosendrefCombo.setSelectedItem(sendref); gocachecontrolCombo.setSelectedItem(cache); goenctypeCombo.setSelectedItem(enctype); } /** * Adds the panel to the dialog for user input. */ public void showDoPanel(String type, String label, String name, String opt, String extra) { doPanel.setName(extra); TabsPanel.add(doPanel, "Do Properties"); tabs.add("do"); String[] typeItems = {"N/A", "accept", "delete", "help", "options", "prev", "reset", "unknown"}; DefaultComboBoxModel cm = new DefaultComboBoxModel(typeItems); dotypeCombo.setModel(cm); String[] optItems = {"N/A", "true", "false"}; DefaultComboBoxModel cm2 = new DefaultComboBoxModel(optItems); dooptCombo.setModel(cm2); // fillin the values dotypeCombo.setSelectedItem(type); dolabelText.setText(label); donameText.setText(name); dooptCombo.setSelectedItem(opt); } /** * Adds the panel to the dialog for user input. */ public void showCardPanel(String context, String back, String forward, String timer, String ordered, String title, String extra) { cardPanel.setName(extra); TabsPanel.add(cardPanel, "Card Properties"); tabs.add("card"); String[] items = {"N/A","true", "false"}; DefaultComboBoxModel cm = new DefaultComboBoxModel(items); DefaultComboBoxModel cm1 = new DefaultComboBoxModel(items); cardnewcontextCombo.setModel(cm); cardorderedCombo.setModel(cm1); // fillin the values cardnewcontextCombo.setSelectedItem(context);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -