| com.silvermindsoftware.hitch.handlers.component.JComboBoxComponentHandler
JComboBoxComponentHandler | public class JComboBoxComponentHandler extends AbstractComponentHandler implements ComponentHandler<JComboBox, Object, Object>(Code) | | Copyright 2007 Brandon Goodin
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
|
getSetterParameterType | protected Class getSetterParameterType()(Code) | | |
preProcessPopulate | public Object preProcessPopulate(JComboBox component, Object modelPropertyValue)(Code) | | Selection of an item can happen in a couple ways:
-
Use compareProperties to specify properties that are examined to determine equality between the
JComboBox item and the model object property. If the model object property is a primitive or
first class object the compareProperties are only used to lookup properties on the JComboBox item.
-
Allow the JComboBox to naturally select the appropriate item. You can accomplish this by
not declaring any compareProperties. If you opt to do this you will need to override equals and hashcode
on more complex object in order to guarantee equality. With primitives or first class object it should
select without need of alteration
Parameters: component - - the component we are populating Parameters: modelPropertyValue - - the value we are populating it with the value that is needed by the component |
preProcessUpdate | public Object preProcessUpdate(JComboBox component, Object componentValue)(Code) | | If the selected item in the JCombo box is not the desired value to be set on the
model object property, you can use the valueProperty to specify a property on the JComboBox
selected item that will be used as the value that is set on the model object property.
|
setCompareProperties | public void setCompareProperties(String compareProperties)(Code) | | |
setValueProperty | public void setValueProperty(String valueProperty)(Code) | | |
|
|