|
|
|
@ -4,16 +4,16 @@ import java.util.ArrayList;
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
import com.fr.form.ui.ToolBar; |
|
|
|
|
import com.fr.form.ui.ToolBarButtonBgColorType; |
|
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
|
import com.fr.general.Background; |
|
|
|
|
import com.fr.widgettheme.theme.widget.theme.WidgetThemeDisplayConstants; |
|
|
|
|
|
|
|
|
|
public class FToolBar { |
|
|
|
|
private List<ToolBarButton> buttonlist = new ArrayList<ToolBarButton>(); |
|
|
|
|
private Background background = null; |
|
|
|
|
private boolean isDefault = true; |
|
|
|
|
|
|
|
|
|
private int buttonBgColor = WidgetThemeDisplayConstants.TOOLBAR_COLOR_AUTO; |
|
|
|
|
private ToolBarButtonBgColorType buttonBgColorType = ToolBarButtonBgColorType.AUTO; |
|
|
|
|
public List<ToolBarButton> getButtonlist() { |
|
|
|
|
return buttonlist; |
|
|
|
|
} |
|
|
|
@ -54,12 +54,12 @@ public class FToolBar {
|
|
|
|
|
this.isDefault = isDefault; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public int getButtonBgColor() { |
|
|
|
|
return buttonBgColor; |
|
|
|
|
public ToolBarButtonBgColorType getButtonBgColorType() { |
|
|
|
|
return buttonBgColorType; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setBgColorLight(int buttonBgColor) { |
|
|
|
|
this.buttonBgColor = buttonBgColor; |
|
|
|
|
public void setButtonBgColorType(ToolBarButtonBgColorType buttonBgColorType) { |
|
|
|
|
this.buttonBgColorType = buttonBgColorType; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public ToolBar getToolBar() { |
|
|
|
@ -70,7 +70,7 @@ public class FToolBar {
|
|
|
|
|
ToolBar toolBar = new ToolBar(n); |
|
|
|
|
toolBar.setBackground(this.background); |
|
|
|
|
toolBar.setDefault(this.isDefault); |
|
|
|
|
toolBar.setButtonBgColor(this.buttonBgColor); |
|
|
|
|
toolBar.setButtonBgColorType(this.buttonBgColorType); |
|
|
|
|
return toolBar; |
|
|
|
|
} |
|
|
|
|
} |