}
.i-app-SamplerApplication .feature-info {
background: #1e2123 url(info-bubble-bg.png) repeat-y;
- color: #9d9ea0;
+ color: #b8bbbe;
font-family: helvetica, arial, verdana, sans-serif;
font-size: 12px;
line-height: 19px;
background: transparent url(bullet.png) no-repeat 2px 60%;
padding-left: 8px;
}
+.i-app-SamplerApplication .feature-info div.i-link a:hover {
+ color: #dcebf6;
+}
.i-app-SamplerApplication .feature-info div.i-link a span {
text-decoration: none;
+ border-bottom: 1px dotted #495964;
+}
+.i-app-SamplerApplication .feature-info div.i-link a:hover span {
+ border-bottom: 1px solid #dcebf6;
}
.i-app-SamplerApplication .feature-info .i-panel-caption {
color: #fff;
}
.i-customcomponent-ModeSwitch .i-button {
- height: 28px;
+ height: 24px;
+ width: 30px;
border: none;
- font-size: 6px;
+ background: transparent url(segment.png) no-repeat;
+ cursor: default;
+ padding: 0;
}
-.i-customcomponent-ModeSwitch .i-button-first-on {
- background: transparent url(left-on.gif) no-repeat;
+.i-customcomponent-ModeSwitch .i-button-first-on,
+.i-customcomponent-ModeSwitch .i-button-first:active {
+ background-position: left bottom;
}
.i-customcomponent-ModeSwitch .i-button-first {
- background: transparent url(left.gif) no-repeat;
+ background-position: left top;
}
+/*
.i-customcomponent-ModeSwitch .i-button-mid-on {
background: transparent url(mid-on.gif) no-repeat;
}
.i-customcomponent-ModeSwitch .i-button-mid {
background: transparent url(mid.gif) no-repeat;
-}
-.i-customcomponent-ModeSwitch .i-button-last-on {
- border: none;
- background: transparent url(right-on.gif) no-repeat right top;
+}*/
+.i-customcomponent-ModeSwitch .i-button-last-on,
+.i-customcomponent-ModeSwitch .i-button-last:active {
+ background-position: right bottom;
}
.i-customcomponent-ModeSwitch .i-button-last {
- border: none;
- background: transparent url(right.gif) no-repeat right top;
+ background-position: right top;
}
private ObjectProperty currentFeature = new ObjectProperty(null,
Feature.class);
- private HorizontalLayout toggleBar = new HorizontalLayout();
-
private MainArea mainArea = new MainArea();
+ private ModeSwitch mode;
+
private SplitPanel mainSplit;
private Tree navigationTree;
// itmill: UA-658457-6
}
});
+ // List/grid/coverflow
+ mode = createModeSwitch();
+ mode.setMode(currentList);
+ nav.addComponent(mode);
+ nav.setComponentAlignment(mode, Alignment.MIDDLE_LEFT);
+
// Layouts for top area buttons
HorizontalLayout quicknav = new HorizontalLayout();
HorizontalLayout arrows = new HorizontalLayout();
nav.addComponent(quicknav);
nav.addComponent(arrows);
+ nav.setComponentAlignment(quicknav, Alignment.MIDDLE_LEFT);
+ nav.setComponentAlignment(arrows, Alignment.MIDDLE_LEFT);
quicknav.setStyleName("segment");
arrows.setStyleName("segment");
- nav.setComponentAlignment(quicknav, "middle");
- nav.setComponentAlignment(arrows, "middle");
// Previous sample
previousSample = createPrevButton();
Component search = createSearch();
quicknav.addComponent(search);
- // togglebar
- // mainExpand.addComponent(toggleBar);
- toggleBar.setHeight("40px");
- toggleBar.setWidth("100%");
- toggleBar.setStyleName("togglebar");
- toggleBar.setSpacing(true);
- toggleBar.setMargin(false, true, false, true);
-
// Main left/right split; hidden menu tree
mainSplit = new SplitPanel(SplitPanel.ORIENTATION_HORIZONTAL);
mainSplit.setSizeFull();
mainExpand.addComponent(mainSplit);
mainExpand.setExpandRatio(mainSplit, 1);
- VerticalLayout rightLayout = new VerticalLayout();
- rightLayout.setSizeFull();
- rightLayout.addComponent(toggleBar);
-
// Menu tree, initially hidden
navigationTree = createMenuTree();
- mainSplit.addComponent(navigationTree);
+ mainSplit.setFirstComponent(navigationTree);
// Main Area
- mainSplit.addComponent(rightLayout);
-
- rightLayout.addComponent(mainArea);
- rightLayout.setExpandRatio(mainArea, 1);
-
- // List/grid/coverflow
- Component mode = createModeSwitch();
- toggleBar.addComponent(mode);
- toggleBar.setComponentAlignment(mode, Alignment.MIDDLE_RIGHT);
+ mainSplit.setSecondComponent(mainArea);
// Show / hide tree
Component treeSwitch = createTreeSwitch();
private Component createTreeSwitch() {
final Button b = new Button();
b.setStyleName("tree-switch");
+ b.setDescription("Toggle sample tree visibility");
b.addListener(new Button.ClickListener() {
public void buttonClick(ClickEvent event) {
if (b.getStyleName().contains("down")) {
return b;
}
- private Component createModeSwitch() {
+ private ModeSwitch createModeSwitch() {
ModeSwitch m = new ModeSwitch();
m.addMode(currentList, "", "View as Icons", new ThemeResource(
"sampler/grid.gif"));
}
}
});
- m.setMode(currentList);
return m;
}
if (val == null) {
currentList.setFeatureContainer(allFeatures);
mainArea.show(currentList);
- toggleBar.setVisible(true);
+ mode.setVisible(true);
} else if (val instanceof FeatureSet) {
currentList.setFeatureContainer(((FeatureSet) val)
.getContainer(true));
mainArea.show(currentList);
- toggleBar.setVisible(true);
+ mode.setVisible(true);
} else {
mainArea.show(featureView);
featureView.setFeature(val);
- toggleBar.setVisible(false);
+ mode.setVisible(false);
}
}