new support classes added
This commit is contained in:
parent
9764f546da
commit
83e0196c50
21 changed files with 798 additions and 9 deletions
27
src/com/coder/client/property/CheckBoxProperty.java
Normal file
27
src/com/coder/client/property/CheckBoxProperty.java
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
package com.coder.client.property;
|
||||
|
||||
import org.controlsfx.property.editor.Editors;
|
||||
import org.controlsfx.property.editor.PropertyEditor;
|
||||
|
||||
public class CheckBoxProperty extends CoderClientProperty<Boolean> {
|
||||
|
||||
public CheckBoxProperty(String name, boolean defaultValue){
|
||||
super(name, defaultValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Class<?> getType() {
|
||||
return Boolean.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
public PropertyEditor<?> getEditor() {
|
||||
return Editors.createCheckEditor(this);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue