Groovy Documentation

griffon.swing.editors
[Java] Class DimensionPropertyEditor

java.lang.Object
  java.beans.PropertyEditorSupport
      griffon.core.resources.editors.AbstractPropertyEditor
          griffon.swing.editors.DimensionPropertyEditor

public class DimensionPropertyEditor
extends AbstractPropertyEditor

Authors:
Andres Almiray
Alexander Klein
Since:
1.1.0


Constructor Summary
DimensionPropertyEditor()

 
Method Summary
String getAsText()

private int getMapValue(Map map, String key, int defaultValue)

private void handleAsList(List list)

private void handleAsMap(Map map)

private void handleAsNumber(Number value)

private void handleAsString(String str)

private int parse(String val)

private int parse(Number val)

private int parseValue(Object value)

protected void setValueInternal(Object value)

 
Methods inherited from class AbstractPropertyEditor
setValue, getFormat, setFormat, getAsText, setAsText, getFormattedValue, setFormattedValue, getValue, addPropertyChangeListener, removePropertyChangeListener, firePropertyChange, getSource, setSource, getTags, isPaintable, paintValue, getJavaInitializationString, getCustomEditor, supportsCustomEditor, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class PropertyEditorSupport
getValue, setValue, addPropertyChangeListener, removePropertyChangeListener, firePropertyChange, getSource, setSource, getTags, getAsText, setAsText, isPaintable, paintValue, getJavaInitializationString, getCustomEditor, supportsCustomEditor, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

DimensionPropertyEditor

DimensionPropertyEditor()


 
Method Detail

getAsText

public String getAsText()


getMapValue

private int getMapValue(Map map, String key, int defaultValue)


handleAsList

private void handleAsList(List list)


handleAsMap

private void handleAsMap(Map map)


handleAsNumber

private void handleAsNumber(Number value)


handleAsString

private void handleAsString(String str)


parse

private int parse(String val)


parse

private int parse(Number val)


parseValue

private int parseValue(Object value)


setValueInternal

protected void setValueInternal(Object value)


 

Groovy Documentation