mirror of
https://github.com/geometer/FBReaderJ.git
synced 2025-10-05 10:49:24 +02:00
git-svn-id: https://only.mawhrin.net/repos/FBReaderJ/trunk@49 6a642e6f-84f6-412e-ac94-c4a38d5a04b0
This commit is contained in:
parent
51dfc1222d
commit
7c29843d11
8 changed files with 26 additions and 17 deletions
|
@ -1,6 +1,5 @@
|
||||||
package org.zlibrary.options;
|
package org.zlibrary.options;
|
||||||
|
|
||||||
import org.zlibrary.options.*;
|
|
||||||
import org.zlibrary.options.util.*;
|
import org.zlibrary.options.util.*;
|
||||||
|
|
||||||
public final class ZLBoolean3Option extends ZLSimpleOption{
|
public final class ZLBoolean3Option extends ZLSimpleOption{
|
||||||
|
@ -17,11 +16,12 @@ public final class ZLBoolean3Option extends ZLSimpleOption{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValue(ZLBoolean3 value){
|
public void setValue(ZLBoolean3 value){
|
||||||
|
//TODO установка значения
|
||||||
}
|
}
|
||||||
|
|
||||||
public ZLBoolean3Option(String category, String group, String optionName, ZLBoolean3 defaultValue){
|
public ZLBoolean3Option(String category, String group, String optionName, ZLBoolean3 defaultValue){
|
||||||
super(category, group, optionName);
|
super(category, group, optionName);
|
||||||
myDefaultValue = defaultValue;
|
myDefaultValue = defaultValue;
|
||||||
|
myValue = myDefaultValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,16 +10,17 @@ public final class ZLBooleanOption extends ZLSimpleOption{
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getValue(){
|
public boolean getValue(){
|
||||||
return true;
|
return myValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValue(boolean value){
|
public void setValue(boolean value){
|
||||||
|
//TODO óñòàíîâêà çíà÷åíèÿ
|
||||||
}
|
}
|
||||||
|
|
||||||
public ZLBooleanOption (String category, String group, String optionName, boolean defaultValue){
|
public ZLBooleanOption (String category, String group, String optionName, boolean defaultValue){
|
||||||
super(category, group, optionName);
|
super(category, group, optionName);
|
||||||
myDefaultValue = defaultValue;
|
myDefaultValue = defaultValue;
|
||||||
|
myValue = myDefaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,18 +8,18 @@ public final class ZLColorOption extends ZLOption{
|
||||||
private long myDefaultIntValue;
|
private long myDefaultIntValue;
|
||||||
|
|
||||||
public long getValue(){
|
public long getValue(){
|
||||||
return 0;
|
return myIntValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValue(ZLColor value){
|
public void setValue(ZLColor value){
|
||||||
|
//TODO óñòàíîâêà çíà÷åíèÿ
|
||||||
}
|
}
|
||||||
|
|
||||||
public ZLColorOption (String category, String group, String optionName, ZLColor defaultValue){
|
public ZLColorOption (String category, String group, String optionName, ZLColor defaultValue){
|
||||||
super(category, group, optionName);
|
super(category, group, optionName);
|
||||||
|
|
||||||
//convert?
|
//convert?
|
||||||
//myDefaultIntValue = defaultValue;
|
myDefaultIntValue = defaultValue.getIntValue();
|
||||||
|
myIntValue = myDefaultIntValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,16 +6,17 @@ public final class ZLDoubleOption extends ZLOption{
|
||||||
private double myDefaultValue;
|
private double myDefaultValue;
|
||||||
|
|
||||||
public double getValue(){
|
public double getValue(){
|
||||||
return 1.0;
|
return myValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValue(double value){
|
public void setValue(double value){
|
||||||
|
//TODO óñòàíîâêà çíà÷åíèÿ
|
||||||
}
|
}
|
||||||
|
|
||||||
public ZLDoubleOption (String category, String group, String optionName, double defaultValue){
|
public ZLDoubleOption (String category, String group, String optionName, double defaultValue){
|
||||||
super(category, group, optionName);
|
super(category, group, optionName);
|
||||||
myDefaultValue = defaultValue;
|
myDefaultValue = defaultValue;
|
||||||
|
myValue = myDefaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,16 +5,17 @@ public final class ZLIntegerOption extends ZLOption{
|
||||||
private long myDefaultValue;
|
private long myDefaultValue;
|
||||||
|
|
||||||
public long getValue(){
|
public long getValue(){
|
||||||
return 0;
|
return myValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValue(long value){
|
public void setValue(long value){
|
||||||
|
// TODO óñòàíîâêà çíà÷åíèÿ
|
||||||
}
|
}
|
||||||
|
|
||||||
public ZLIntegerOption (String category, String group, String optionName, int defaultValue){
|
public ZLIntegerOption (String category, String group, String optionName, int defaultValue){
|
||||||
super(category, group, optionName);
|
super(category, group, optionName);
|
||||||
myDefaultValue = defaultValue;
|
myDefaultValue = defaultValue;
|
||||||
|
myValue = myDefaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,19 +7,19 @@ public final class ZLIntegerRangeOption extends ZLOption{
|
||||||
private long myMaxValue;
|
private long myMaxValue;
|
||||||
|
|
||||||
public long getValue(){
|
public long getValue(){
|
||||||
return 0;
|
return myValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getMinValue(){
|
public long getMinValue(){
|
||||||
return 0;
|
return myMinValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public long getMaxValue(){
|
public long getMaxValue(){
|
||||||
return 0;
|
return myMaxValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValue(long value){
|
public void setValue(long value){
|
||||||
|
// TODO óñòàíîâêà çíà÷åíèÿ
|
||||||
}
|
}
|
||||||
|
|
||||||
public ZLIntegerRangeOption (String category, String group, String optionName, long minValue, long maxValue, long defaultValue){
|
public ZLIntegerRangeOption (String category, String group, String optionName, long minValue, long maxValue, long defaultValue){
|
||||||
|
@ -27,6 +27,7 @@ public final class ZLIntegerRangeOption extends ZLOption{
|
||||||
myDefaultValue = defaultValue;
|
myDefaultValue = defaultValue;
|
||||||
myMinValue = minValue;
|
myMinValue = minValue;
|
||||||
myMaxValue = maxValue;
|
myMaxValue = maxValue;
|
||||||
|
myValue = myDefaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,12 +16,13 @@ public final class ZLStringOption extends ZLSimpleOption {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValue(String value){
|
public void setValue(String value){
|
||||||
|
// TODO установка значения
|
||||||
}
|
}
|
||||||
|
|
||||||
public ZLStringOption (String category, String group, String optionName, String defaultValue){
|
public ZLStringOption (String category, String group, String optionName, String defaultValue){
|
||||||
super(category, group, optionName);
|
super(category, group, optionName);
|
||||||
myDefaultValue = defaultValue;
|
myDefaultValue = defaultValue;
|
||||||
|
myValue = myDefaultValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,4 +105,8 @@ public class ZLColor {
|
||||||
return new Color(myRed, myGreen, myBlue);
|
return new Color(myRed, myGreen, myBlue);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getIntValue(){
|
||||||
|
//TODO âîçâðàùåíèå öâåòà îäíèì ÷èñëîì
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue