本文整理了Java中javax.swing.JTextField.putClientProperty()
方法的一些代码示例,展示了JTextField.putClientProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextField.putClientProperty()
方法的具体详情如下:
包路径:javax.swing.JTextField
类名称:JTextField
方法名:putClientProperty
暂无
代码示例来源:origin: nodebox/nodebox
protected JTextComponent createField() {
JTextField textField = new JTextField();
textField.putClientProperty("JComponent.sizeVariant", "small");
textField.setFont(Theme.SMALL_BOLD_FONT);
textField.addActionListener(this);
textField.addFocusListener(new FocusAdapter() {
public void focusLost(FocusEvent e) {
commitTextFieldValue();
}
});
return textField;
}
代码示例来源:origin: nodebox/nodebox
public FileControl(String nodePath, Port port) {
super(nodePath, port);
setLayout(new FlowLayout(FlowLayout.LEADING, 0, 0));
fileField = new JTextField();
fileField.putClientProperty("JComponent.sizeVariant", "small");
fileField.setPreferredSize(new Dimension(150, 19));
fileField.setEditable(false);
fileField.setFont(Theme.SMALL_BOLD_FONT);
chooseButton = new JButton("...");
chooseButton.putClientProperty("JButton.buttonType", "gradient");
chooseButton.setPreferredSize(new Dimension(30, 27));
chooseButton.addActionListener(this);
add(fileField);
add(chooseButton);
setValueForControl(port.getValue());
}
代码示例来源:origin: nodebox/nodebox
public TextControl(String nodePath, Port port) {
super(nodePath, port);
setLayout(new BorderLayout(0, 0));
textField = new JTextField();
textField.putClientProperty("JComponent.sizeVariant", "small");
textField.setFont(Theme.SMALL_BOLD_FONT);
textField.addActionListener(this);
externalWindowButton = new JButton("...");
externalWindowButton.putClientProperty("JComponent.sizeVariant", "small");
externalWindowButton.putClientProperty("JButton.buttonType", "gradient");
externalWindowButton.setFont(Theme.SMALL_BOLD_FONT);
externalWindowButton.addActionListener(this);
add(textField, BorderLayout.CENTER);
add(externalWindowButton, BorderLayout.EAST);
setValueForControl(port.getValue());
}
代码示例来源:origin: nodebox/nodebox
filteredNodeListModel = new FilteredNodeListModel(library, repository);
searchField = new JTextField();
searchField.putClientProperty("JTextField.variant", "search");
EscapeListener escapeListener = new EscapeListener();
searchField.addKeyListener(escapeListener);
代码示例来源:origin: nodebox/nodebox
numberField.putClientProperty("JComponent.sizeVariant", "small");
numberField.setFont(Theme.SMALL_BOLD_FONT);
numberField.setHorizontalAlignment(JTextField.CENTER);
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldSpeciesCodeRubbin() {
$objectMap.put("fieldSpeciesCodeRubbin", fieldSpeciesCodeRubbin = new JTextField());
fieldSpeciesCodeRubbin.setName("fieldSpeciesCodeRubbin");
fieldSpeciesCodeRubbin.setColumns(15);
fieldSpeciesCodeRubbin.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldSpeciesCodeRubbin"));
fieldSpeciesCodeRubbin.putClientProperty("sensitivityBean", Species.class);
fieldSpeciesCodeRubbin.putClientProperty("sensitivityMethod", "CodeRubbin");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldVesselTypeUnitFuelCostOfTravel() {
$objectMap.put("fieldVesselTypeUnitFuelCostOfTravel", fieldVesselTypeUnitFuelCostOfTravel = new JTextField());
fieldVesselTypeUnitFuelCostOfTravel.setName("fieldVesselTypeUnitFuelCostOfTravel");
fieldVesselTypeUnitFuelCostOfTravel.setColumns(15);
fieldVesselTypeUnitFuelCostOfTravel.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldVesselTypeUnitFuelCostOfTravel"));
fieldVesselTypeUnitFuelCostOfTravel.putClientProperty("sensitivityBean", VesselType.class);
fieldVesselTypeUnitFuelCostOfTravel.putClientProperty("sensitivityMethod", "UnitFuelCostOfTravel");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldPopulationGroupMin() {
$objectMap.put("fieldPopulationGroupMin", fieldPopulationGroupMin = new JTextField());
fieldPopulationGroupMin.setName("fieldPopulationGroupMin");
fieldPopulationGroupMin.setColumns(15);
fieldPopulationGroupMin.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldPopulationGroupMin"));
fieldPopulationGroupMin.putClientProperty("sensitivityBean", Population.class);
fieldPopulationGroupMin.putClientProperty("sensitivityMethod", "MinAge");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldEffortDescriptionCrewShareRate() {
$objectMap.put("fieldEffortDescriptionCrewShareRate", fieldEffortDescriptionCrewShareRate = new JTextField());
fieldEffortDescriptionCrewShareRate.setName("fieldEffortDescriptionCrewShareRate");
fieldEffortDescriptionCrewShareRate.setColumns(15);
fieldEffortDescriptionCrewShareRate.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldEffortDescriptionCrewShareRate"));
fieldEffortDescriptionCrewShareRate.putClientProperty("sensitivityBean", EffortDescription.class);
fieldEffortDescriptionCrewShareRate.putClientProperty("sensitivityMethod", "CrewShareRate");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldEffortDescriptionCrewSize() {
$objectMap.put("fieldEffortDescriptionCrewSize", fieldEffortDescriptionCrewSize = new JTextField());
fieldEffortDescriptionCrewSize.setName("fieldEffortDescriptionCrewSize");
fieldEffortDescriptionCrewSize.setColumns(15);
fieldEffortDescriptionCrewSize.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldEffortDescriptionCrewSize"));
fieldEffortDescriptionCrewSize.putClientProperty("sensitivityBean", EffortDescription.class);
fieldEffortDescriptionCrewSize.putClientProperty("sensitivityMethod", "CrewSize");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldSetOfVesselsFixedCosts() {
$objectMap.put("fieldSetOfVesselsFixedCosts", fieldSetOfVesselsFixedCosts = new JTextField());
fieldSetOfVesselsFixedCosts.setName("fieldSetOfVesselsFixedCosts");
fieldSetOfVesselsFixedCosts.setColumns(15);
fieldSetOfVesselsFixedCosts.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldSetOfVesselsFixedCosts"));
fieldSetOfVesselsFixedCosts.putClientProperty("sensitivityBean", SetOfVessels.class);
fieldSetOfVesselsFixedCosts.putClientProperty("sensitivityMethod", "FixedCosts");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldSpeciesCEE() {
$objectMap.put("fieldSpeciesCEE", fieldSpeciesCEE = new JTextField());
fieldSpeciesCEE.setName("fieldSpeciesCEE");
fieldSpeciesCEE.setColumns(15);
fieldSpeciesCEE.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldSpeciesCEE"));
fieldSpeciesCEE.putClientProperty("sensitivityBean", Species.class);
fieldSpeciesCEE.putClientProperty("sensitivityMethod", "CodeCEE");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldSpeciesScientificName() {
$objectMap.put("fieldSpeciesScientificName", fieldSpeciesScientificName = new JTextField());
fieldSpeciesScientificName.setName("fieldSpeciesScientificName");
fieldSpeciesScientificName.setColumns(15);
fieldSpeciesScientificName.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldSpeciesScientificName"));
fieldSpeciesScientificName.putClientProperty("sensitivityBean", Species.class);
fieldSpeciesScientificName.putClientProperty("sensitivityMethod", "ScientificName");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldVesselTypeMinCrewSize() {
$objectMap.put("fieldVesselTypeMinCrewSize", fieldVesselTypeMinCrewSize = new JTextField());
fieldVesselTypeMinCrewSize.setName("fieldVesselTypeMinCrewSize");
fieldVesselTypeMinCrewSize.setColumns(15);
fieldVesselTypeMinCrewSize.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldVesselTypeMinCrewSize"));
fieldVesselTypeMinCrewSize.putClientProperty("sensitivityBean", VesselType.class);
fieldVesselTypeMinCrewSize.putClientProperty("sensitivityMethod", "MinCrewSize");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldMetierParam() {
$objectMap.put("fieldMetierParam", fieldMetierParam = new JTextField());
fieldMetierParam.setName("fieldMetierParam");
fieldMetierParam.setColumns(15);
fieldMetierParam.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldMetierParam"));
fieldMetierParam.putClientProperty("sensitivityBean", Metier.class);
fieldMetierParam.putClientProperty("sensitivityMethod", "GearParameterValue");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldStrategyProportionSetOfVessels() {
$objectMap.put("fieldStrategyProportionSetOfVessels", fieldStrategyProportionSetOfVessels = new JTextField());
fieldStrategyProportionSetOfVessels.setName("fieldStrategyProportionSetOfVessels");
fieldStrategyProportionSetOfVessels.setColumns(15);
fieldStrategyProportionSetOfVessels.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldStrategyProportionSetOfVessels"));
fieldStrategyProportionSetOfVessels.putClientProperty("sensitivityBean", Strategy.class);
fieldStrategyProportionSetOfVessels.putClientProperty("sensitivityMethod", "ProportionSetOfVessels");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldEffortDescriptionOtherRunningCost() {
$objectMap.put("fieldEffortDescriptionOtherRunningCost", fieldEffortDescriptionOtherRunningCost = new JTextField());
fieldEffortDescriptionOtherRunningCost.setName("fieldEffortDescriptionOtherRunningCost");
fieldEffortDescriptionOtherRunningCost.setColumns(15);
fieldEffortDescriptionOtherRunningCost.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldEffortDescriptionOtherRunningCost"));
fieldEffortDescriptionOtherRunningCost.putClientProperty("sensitivityBean", EffortDescription.class);
fieldEffortDescriptionOtherRunningCost.putClientProperty("sensitivityMethod", "OtherRunningCost");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldEffortDescriptionFishingOperationDuration() {
$objectMap.put("fieldEffortDescriptionFishingOperationDuration", fieldEffortDescriptionFishingOperationDuration = new JTextField());
fieldEffortDescriptionFishingOperationDuration.setName("fieldEffortDescriptionFishingOperationDuration");
fieldEffortDescriptionFishingOperationDuration.setColumns(15);
fieldEffortDescriptionFishingOperationDuration.setToolTipText(t("isisfish.effortDescription.fishingOperationDuration.tooltip"));
fieldEffortDescriptionFishingOperationDuration.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldEffortDescriptionFishingOperationDuration"));
fieldEffortDescriptionFishingOperationDuration.putClientProperty("sensitivityBean", EffortDescription.class);
fieldEffortDescriptionFishingOperationDuration.putClientProperty("sensitivityMethod", "FishingOperationDuration");
}
代码示例来源:origin: fr.ifremer/isis-fish
protected void createFieldTripTypeDuration() {
$objectMap.put("fieldTripTypeDuration", fieldTripTypeDuration = new JTextField());
fieldTripTypeDuration.setName("fieldTripTypeDuration");
fieldTripTypeDuration.setColumns(15);
fieldTripTypeDuration.setToolTipText(t("isisfish.common.duration.inhours"));
fieldTripTypeDuration.addKeyListener(JAXXUtil.getEventListener(KeyListener.class, "keyReleased", this, "doKeyReleased__on__fieldTripTypeDuration"));
fieldTripTypeDuration.putClientProperty("sensitivityBean", TripType.class);
fieldTripTypeDuration.putClientProperty("sensitivityMethod", "TripDuration");
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-ruby
/** Creates new form FmtTabsIndents */
public FmtTabsIndents() {
initComponents();
// Not yet implemented
//indentCasesFromSwitchCheckBox.setVisible(false);
continuationIndentSizeField.putClientProperty(OPTION_ID, continuationIndentSize);
reformatCommentsCheckBox.putClientProperty(OPTION_ID, reformatComments);
indentHtmlCheckBox.putClientProperty(OPTION_ID, indentHtml);
}
内容来源于网络,如有侵权,请联系作者删除!