mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-15 05:13:14 -04:00
Added Guild Permissions List, Added setting of permissions via permissions list, minor SUI Table method changes
This commit is contained in:
@@ -192,13 +192,15 @@ public class SUIWindow {
|
||||
tableItems.add(item);
|
||||
}
|
||||
|
||||
public void addTableRow(String itemName) {
|
||||
public void addTableCell(String cellName, long cellObjId, int columnIndex) {
|
||||
|
||||
tableItems.forEach(column -> {
|
||||
int index = column.getIndex();
|
||||
SUITableItem item = new SUITableItem(itemName, index);
|
||||
addDataItem("comp.TablePage.dataTable." + index + ":Name", "data" + index);
|
||||
setProperty("comp.TablePage.dataTable." + index + ".data" + index + ":Value", itemName);
|
||||
column.getChildren().add(item);
|
||||
if (column.getIndex() == columnIndex) {
|
||||
SUITableCell cell = new SUITableCell(cellName, cellObjId, column.getCells().size());
|
||||
addDataItem("comp.TablePage.dataTable." + columnIndex + ":Name", "data" + cell.getCellId());
|
||||
setProperty("comp.TablePage.dataTable." + columnIndex + ".data" + cell.getCellId() + ":Value", cellName);
|
||||
column.getCells().add(cell);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -270,6 +272,22 @@ public class SUIWindow {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public long getTableObjIdByRow(int row) {
|
||||
SUITableItem item = getTableItems().get(0);
|
||||
|
||||
if (item != null)
|
||||
return item.getCells().get(row).getObjectId();
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Vector<SUITableItem> getTableItems() {
|
||||
return tableItems;
|
||||
}
|
||||
|
||||
public void setTableItems(Vector<SUITableItem> tableItems) {
|
||||
this.tableItems = tableItems;
|
||||
}
|
||||
|
||||
public enum Trigger {;
|
||||
public static byte TRIGGER_UPDATE = 4;
|
||||
|
||||
Reference in New Issue
Block a user