Skip to content

Instantly share code, notes, and snippets.

@mudgen
Created November 19, 2012 21:22
Show Gist options
  • Save mudgen/4114042 to your computer and use it in GitHub Desktop.
Save mudgen/4114042 to your computer and use it in GitHub Desktop.
package com.inductiveautomation.gemsecs.webpages;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
import com.inductiveautomation.gemsecs.EquipmentRecord;
import com.inductiveautomation.ignition.gateway.localdb.persistence.RecordMeta;
import com.inductiveautomation.ignition.gateway.web.components.ConfigPanel;
import com.inductiveautomation.ignition.gateway.web.components.RecordActionTable;
import com.inductiveautomation.ignition.gateway.web.components.actions.NewRecordAction;
import com.inductiveautomation.ignition.gateway.web.pages.IConfigPage;
public class EquipmentSettingsPage extends RecordActionTable<EquipmentRecord> {
public EquipmentSettingsPage(IConfigPage configPage) {
super(configPage);
// TODO Auto-generated constructor stub
}
@Override
public String[] getMenuPath() {
// TODO Auto-generated method stub
return null;
}
@Override
protected RecordMeta<EquipmentRecord> getRecordMeta() {
return EquipmentRecord.META;
}
@Override
protected String getTitleKey() {
return "EquipmentRecord.title";
}
@Override
protected WebMarkupContainer newRecordAction(String id) {
return new NewRecordAction<EquipmentRecord>(id, configPage, getActionParentPanel(), getRecordMeta()) {
//@Override
//protected void setupNewRecord(EquipmentRecord record) {
// EquipmentSettingsPage.this.setupNewRecord(record);
//}
@Override
public IModel<String> getLabel() {
return Model.of("Create new Equipment Connection...");
}
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment