129130131132133134135136
// public LayoutTab removeATabByIdx(int index) throws LayoutRESTOPException { if (index >=0 && index < layoutTabs.size()) { return layoutTabs.remove(index); } else { throw new LayoutRESTOPException(errorTxtNonExist); } }
140141142143144145146
if (tab.getTabName() != null && tab.getTabName().equals(tabname)) { it.remove(); return tab; } } throw new LayoutRESTOPException(errorTxtNonExist); }
149150151152153154155156
// public LayoutTab getATabByIdx(int index) throws LayoutRESTOPException { if (index >=0 && index < layoutTabs.size()) { return layoutTabs.get(index); } else { throw new LayoutRESTOPException(errorTxtNonExist); } }
160161162163164165166
LayoutTab tab = it.next(); if (tab.getTabName() != null && tab.getTabName().equals(tabname)) { return tab; } } throw new LayoutRESTOPException(errorTxtNonExist); }
174175176177178179180181
public LayoutTab updateATabByIdx(int index, LayoutTab tab) throws LayoutRESTOPException { if (index >=0 && index < layoutTabs.size()) { return layoutTabs.set(index, tab); } else { throw new LayoutRESTOPException(errorTxtNonExist); } }
186187188189190191192
LayoutTab tab = layoutTabs.get(i); if (tab.getTabName() != null && tab.getTabName().equals(tabname)) { return layoutTabs.set(i, newTab); } } throw new LayoutRESTOPException(errorTxtNonExist); }
4849505152535455
public void addALayout(int index, Layout layout) throws LayoutRESTOPException { if (index >= 0 && index <= layouts.size()) { layouts.add(index, layout); } else { throw new LayoutRESTOPException(errorTxtAddIndex); } }
575859606162636465666768
// delete // public Layout removeALayoutByIdx(int index) throws LayoutRESTOPException { if (index >=0 && index < layouts.size()) { if (layouts.size() == 1) throw new LayoutRESTOPException(errorTxtOnlyOneRm); else return layouts.remove(index); } else { throw new LayoutRESTOPException(errorTxtNonExist); } }
7172737475767778
// public Layout getALayoutByIdx(int index) throws LayoutRESTOPException { if (index >=0 && index < layouts.size()) { return layouts.get(index); } else { throw new LayoutRESTOPException(errorTxtNonExist); } }
979899100101102103104
public Layout updateALayoutByIdx(int index, Layout layout) throws LayoutRESTOPException { if (index >=0 && index < layouts.size()) { return layouts.set(index, layout); } else { throw new LayoutRESTOPException(errorTxtNonExist); } }