hi,
1)
there are a few little "copy and paste" errors in your showcase RibbonBar. (http://www.smartclient.com/smartgwt/showcase/#ribbonbar)
instead of
2) Is it possible to extend the RibbonBar so that we can collapse them?
a) after click on title it expands (RibbonBar-expanded.png)
b) automatic collapse if the user leaves the menu (RibbonBar-collapsed.png)
c) a always expand option?
Can you give me a hint how I can develop this.
best regards,
timo
1)
there are a few little "copy and paste" errors in your showcase RibbonBar. (http://www.smartclient.com/smartgwt/showcase/#ribbonbar)
Code:
RibbonGroup fileGroup = new RibbonGroup();
fileGroup.setTitle("File");
fileGroup.setTitleAlign(Alignment.LEFT);
fileGroup.setNumRows(1);
fileGroup.setRowHeight(76);
fileGroup.addControl(getIconMenuButton("New", "piece_blue", menu, true));
fileGroup.addControl(getIconButton("Open", "star_yellow", true));
fileGroup.addControl(getIconButton("Save", "pawn_red", true));
fileGroup.addControl(getIconMenuButton("Save As", "cube_green", menu, true));
RibbonGroup editGroup = new RibbonGroup();
editGroup.setTitle("Edit");
editGroup.setNumRows(3);
editGroup.setRowHeight(24);
fileGroup.addControl(getIconButton("Edit", "piece_blue", false));
fileGroup.addControl(getIconButton("Copy", "pawn_green", false));
fileGroup.addControl(getIconButton("Paste", "cube_yellow", false));
fileGroup.addControl(getIconMenuButton("Undo", null, menu, false));
fileGroup.addControl(getIconMenuButton("Redo", null, menu, false));
RibbonGroup insertGroup = new RibbonGroup();
insertGroup.setTitle("Insert");
insertGroup.setNumRows(3);
insertGroup.setRowHeight(24);
fileGroup.addControl(getIconMenuButton("Picture", null, menu, false));
fileGroup.addControl(getIconButton("Link", "pawn_white", false));
fileGroup.addControl(getIconButton("Document", "star_yellow", false));
fileGroup.addControl(getIconButton("Video", "piece_red", false));
Code:
RibbonGroup fileGroup = new RibbonGroup();
fileGroup.setTitle("File");
fileGroup.setTitleAlign(Alignment.LEFT);
fileGroup.setNumRows(1);
fileGroup.setRowHeight(76);
fileGroup.addControl(getIconMenuButton("New", "piece_blue", menu, true));
fileGroup.addControl(getIconButton("Open", "star_yellow", true));
fileGroup.addControl(getIconButton("Save", "pawn_red", true));
fileGroup.addControl(getIconMenuButton("Save As", "cube_green", menu, true));
RibbonGroup editGroup = new RibbonGroup();
editGroup.setTitle("Edit");
editGroup.setNumRows(3);
editGroup.setRowHeight(24);
editGroup.addControl(getIconButton("Edit", "piece_blue", false));
editGroup.addControl(getIconButton("Copy", "pawn_green", false));
editGroup.addControl(getIconButton("Paste", "cube_yellow", false));
editGroup.addControl(getIconMenuButton("Undo", null, menu, false));
editGroup.addControl(getIconMenuButton("Redo", null, menu, false));
RibbonGroup insertGroup = new RibbonGroup();
insertGroup.setTitle("Insert");
insertGroup.setNumRows(3);
insertGroup.setRowHeight(24);
insertGroup.addControl(getIconMenuButton("Picture", null, menu, false));
insertGroup.addControl(getIconButton("Link", "pawn_white", false));
insertGroup.addControl(getIconButton("Document", "star_yellow", false));
insertGroup.addControl(getIconButton("Video", "piece_red", false));
2) Is it possible to extend the RibbonBar so that we can collapse them?
a) after click on title it expands (RibbonBar-expanded.png)
b) automatic collapse if the user leaves the menu (RibbonBar-collapsed.png)
c) a always expand option?
Can you give me a hint how I can develop this.
best regards,
timo
Comment