|
|
|
@ -6,13 +6,14 @@ import java.util.List;
|
|
|
|
|
import com.fr.form.ui.ToolBar; |
|
|
|
|
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 boolean buttonBgColorLight = true; |
|
|
|
|
private int buttonBgColor = WidgetThemeDisplayConstants.TOOLBAR_COLOR_AUTO; |
|
|
|
|
public List<ToolBarButton> getButtonlist() { |
|
|
|
|
return buttonlist; |
|
|
|
|
} |
|
|
|
@ -53,12 +54,12 @@ public class FToolBar {
|
|
|
|
|
this.isDefault = isDefault; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isBgColorLight() { |
|
|
|
|
return buttonBgColorLight; |
|
|
|
|
public int getButtonBgColor() { |
|
|
|
|
return buttonBgColor; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setBgColorLight(boolean bgColorLight) { |
|
|
|
|
this.buttonBgColorLight = bgColorLight; |
|
|
|
|
public void setBgColorLight(int buttonBgColor) { |
|
|
|
|
this.buttonBgColor = buttonBgColor; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public ToolBar getToolBar() { |
|
|
|
@ -69,7 +70,7 @@ public class FToolBar {
|
|
|
|
|
ToolBar toolBar = new ToolBar(n); |
|
|
|
|
toolBar.setBackground(this.background); |
|
|
|
|
toolBar.setDefault(this.isDefault); |
|
|
|
|
toolBar.setButtonBgColorLight(this.buttonBgColorLight); |
|
|
|
|
toolBar.setButtonBgColor(this.buttonBgColor); |
|
|
|
|
return toolBar; |
|
|
|
|
} |
|
|
|
|
} |