Created
November 19, 2012 21:22
-
-
Save mudgen/4114042 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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