Hello,
I have made a table with pagination and filtering and I have problems with the visualization: edit buttons jumps when pass the cursor over, problems with the size of the list and text on table foot is not visible (remarked in red).
The code is:
public class MiClase extends LayoutContainer {
private Table tbPaginacion;
private ConfiguracionLoader loader;
public void onModuleLoad() {
RootPanel.get().add(this);
}
@Override
protected void onRender(Element parent, int pos) {
super.onRender(parent, pos);
List columns = getColumnas();
TableColumnModel cm = new TableColumnModel(columns);
tbPaginacion = new Table(cm); VISUALIZING ABSTRACT OBJECTS AND RELATIONS:: be applied to various types of visualization problems, such as the visualization Examples of all these problems are shown with actual mapping rules and http://www.wspc.com/books/compsci/0922.htmlHOME |
tbPaginacion.setAutoHeight(true);
tbPaginacion.setAutoWidth(true);
// loader
loader = Utiles.getLoader();
// store
ListStore store = new ListStore(loader);
// binder
new TableBinder(tbPaginacion, store);
PagingToolBar toolBar = new PagingToolBar(getTamanoPaginacion());
toolBar.bind(loader);
ContentPanel panel = new ContentPanel();
panel.setFrame(true);
panel.setAnimCollapse(false);
panel.setButtonAlign(HorizontalAlignment.CENTER);
panel.setIconStyle("icon-table");
panel.setLayout(new FlowLayout());
panel.add(tbPaginacion);
panel.setHeight(360);
panel.scrollIntoView(tbPaginacion);
panel.setScrollMode(Scroll.AUTO);
panel.setBottomComponent(toolBar);
crearMenu(panel);
// load after rendering
DeferredCommand.addCommand(new Command() {
public void execute() {
refrescar();
}
});
add(panel);
}
private void crearMenu(ContentPanel panel) {
// built in support for top component
VerticalPanel vp = new VerticalPanel();
ToolBar toolBarMenu = crearBotonesMenu();
vp.add(toolBarMenu);
vp.add(toolBarFiltros);
panel.setTopComponent(vp);
}
private ToolBar crearBotonesMenu() {
ToolBar toolBarMenu = new ToolBar();
TextToolItem addItem = new TextToolItem("Aņadir","icon-add");
TextToolItem editarItem= new TextToolItem("Editar", "icon-plugin");
TextToolItem eliminarItem=new TextToolItem("Delete","icon-delete");
toolBarMenu.add(addItem);
toolBarMenu.add(new SeparatorToolItem());
toolBarMenu.add(editarItem);
toolBarMenu.add(new SeparatorToolItem());
toolBarMenu.add(eliminarItem);
List botonesAdicionales = getBotonesAdicionales();
if (botonesAdicionales!=null && !botonesAdicionales.isEmpty()){
for (TextToolItem tti: botonesAdicionales){
toolBarMenu.add(new SeparatorToolItem());
toolBarMenu.add(tti);
}
}
return toolBarMenu;
}
}You can see the result in the attachment (sorry for the poor quality capture). Whatīs wrong?
I think my code is ok.
Thanks
Your test code is not complete. There are dependencies to resources not in the test file. Please post sample code that can be executed.
Hello Darrell, the problems are being solved for now.
Thanks
How much does getting a small tattoo on your hip/stomach hurt?
Do anyone else have an itchy anus? ?
|