本文整理汇总了Java中org.onosproject.ui.table.TableModel.Row方法的典型用法代码示例。如果您正苦于以下问题:Java TableModel.Row方法的具体用法?Java TableModel.Row怎么用?Java TableModel.Row使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.onosproject.ui.table.TableModel
的用法示例。
在下文中一共展示了TableModel.Row方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, Device dev,
DeviceService ds, MastershipService ms) {
DeviceId id = dev.id();
boolean available = ds.isAvailable(id);
String iconId = available ? ICON_ID_ONLINE : ICON_ID_OFFLINE;
row.cell(ID, id)
.cell(NAME, deviceName(dev))
.cell(AVAILABLE, available)
.cell(AVAILABLE_IID, iconId)
.cell(TYPE_IID, getTypeIconId(dev))
.cell(MFR, dev.manufacturer())
.cell(HW, dev.hwVersion())
.cell(SW, dev.swVersion())
.cell(PROTOCOL, deviceProtocol(dev))
.cell(NUM_PORTS, ds.getPorts(id).size())
.cell(MASTER_ID, ms.getMasterFor(id));
}
示例2: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, Application app,
ApplicationService as) {
ApplicationId id = app.id();
ApplicationState state = as.getState(id);
String iconId = state == ACTIVE ? ICON_ID_ACTIVE : ICON_ID_INACTIVE;
row.cell(STATE, state)
.cell(STATE_IID, iconId)
.cell(ID, id.name())
.cell(ICON, id.name())
.cell(VERSION, app.version())
.cell(CATEGORY, app.category())
.cell(ORIGIN, app.origin())
.cell(TITLE, app.title())
.cell(DESC, app.description())
.cell(URL, app.url());
}
示例3: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, FlowEntry flow,
Map<Short, ApplicationId> lookup) {
row.cell(ID, flow.id().value())
.cell(STATE, flow.state())
.cell(BYTES, flow.bytes())
.cell(PACKETS, flow.packets())
.cell(DURATION, flow.life())
.cell(PRIORITY, flow.priority())
.cell(TABLE_NAME, flow.table())
.cell(APP_ID, flow.appId())
.cell(APP_NAME, makeAppName(flow.appId(), lookup))
.cell(GROUP_ID, flow.groupId().id())
.cell(IDLE_TIMEOUT, flow.timeout())
.cell(PERMANENT, flow.isPermanent())
.cell(SELECTOR_C, flow)
.cell(SELECTOR, flow)
.cell(TREATMENT_C, flow)
.cell(TREATMENT, flow);
}
示例4: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, Port port, DeviceId deviceId) {
PortNumber portNum = port.number();
getFrequencyLimit(deviceId, portNum);
row.cell(ID, portNum.toLong())
.cell(TYPE, port.type())
.cell(ENABLED, port.isEnabled())
.cell(NAME, RoadmUtil.getAnnotation(port.annotations(), AnnotationKeys.PORT_NAME))
.cell(MIN_FREQ, RoadmUtil.asTHz(minFreq))
.cell(MAX_FREQ, RoadmUtil.asTHz(maxFreq))
.cell(GRID, RoadmUtil.asGHz(channelSpacing))
.cell(POWER_RANGE, getPowerRange(deviceId, portNum))
.cell(CURRENT_POWER, getCurrentPower(deviceId, portNum))
.cell(SERVICE_STATE, getPortServiceState(deviceId, portNum))
.cell(TARGET_POWER, getTargetPower(deviceId, portNum))
.cell(HAS_TARGET_POWER, roadmService.hasPortTargetPower(deviceId, portNum));
}
示例5: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, BaseLink blink) {
row.cell(ONE, blink.one().src())
.cell(TWO, blink.one().dst())
.cell(TYPE, linkType(blink))
.cell(STATE, linkState(blink))
.cell(DIRECTION, linkDir(blink))
.cell(DURABLE, blink.one().isDurable());
}
示例6: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, FlowEntry flow) {
row.cell(ID, flow.id().value())
.cell(APP_ID, flow.appId())
.cell(GROUP_ID, flow.groupId().id())
.cell(TABLE_ID, flow.tableId())
.cell(PRIORITY, flow.priority())
.cell(TIMEOUT, flow.timeout())
.cell(PERMANENT, flow.isPermanent())
.cell(STATE, flow.state())
.cell(PACKETS, flow.packets())
.cell(BYTES, flow.bytes())
.cell(SELECTOR, flow)
.cell(TREATMENT, flow);
}
示例7: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, PacketProcessorEntry entry) {
row.cell(ID, entry.priority())
.cell(TYPE, processorType(entry.priority()))
.cell(PRIORITY, processorPriority(entry.priority()))
.cell(PROCESSOR, entry.processor().getClass().getName())
.cell(PACKETS, entry.invocations())
.cell(AVG_MS, (double) entry.averageNanos() / NANOS_IN_MS);
}
示例8: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, Intent intent, IntentService is) {
row.cell(APP_ID, intent.appId())
.cell(KEY, intent.key())
.cell(TYPE, intent.getClass().getSimpleName())
.cell(PRIORITY, intent.priority())
.cell(STATE, is.getIntentState(intent.key()))
.cell(RESOURCES, intent)
.cell(DETAILS, intent);
}
示例9: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, PortStatistics stat) {
row.cell(ID, stat.port())
.cell(PKT_RX, stat.packetsReceived())
.cell(PKT_TX, stat.packetsSent())
.cell(BYTES_RX, stat.bytesReceived())
.cell(BYTES_TX, stat.bytesSent())
.cell(PKT_RX_DRP, stat.packetsRxDropped())
.cell(PKT_TX_DRP, stat.packetsTxDropped())
.cell(DURATION, stat.durationSec());
}
示例10: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, Tunnel tunnel) {
row.cell(ID, tunnel.tunnelId().id())
.cell(NAME, tunnel.tunnelName().value())
.cell(ONE, tunnel.src())
.cell(TWO, tunnel.dst())
.cell(TYPE, tunnel.type())
.cell(GROUP_ID, tunnel.groupId().id())
.cell(BANDWIDTH, tunnel.annotations().value(BANDWIDTH))
.cell(PATH, tunnel.path());
}
示例11: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, String component, ConfigProperty prop) {
row.cell(COMPONENT, component)
.cell(ID, prop.name())
.cell(TYPE, prop.type().toString().toLowerCase())
.cell(VALUE, prop.value())
.cell(DEFAULT, prop.defaultValue())
.cell(DESC, prop.description());
}
示例12: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, Meter m) {
row.cell(ID, m.id().id())
.cell(APP_ID, m.appId().name())
.cell(STATE, m.state())
.cell(PACKETS, m.packetsSeen())
.cell(BYTES, m.bytesSeen())
.cell(BANDS, m.bands());
}
示例13: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, ControllerNode node,
ClusterService cs) {
NodeId id = node.id();
DateTime lastUpdated = cs.getLastUpdated(id);
ControllerNode.State state = cs.getState(id);
String iconId = state.isActive() ? ICON_ID_ONLINE : ICON_ID_OFFLINE;
String startedId = state.isReady() ? ICON_ID_ONLINE : ICON_ID_OFFLINE;
row.cell(ID, id)
.cell(IP, node.ip())
.cell(TCP_PORT, node.tcpPort())
.cell(STATE_IID, iconId)
.cell(STARTED_IID, startedId)
.cell(UPDATED, lastUpdated);
}
示例14: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, Group g) {
row.cell(ID, g.id().id())
.cell(APP_ID, g.appId().name())
.cell(STATE, g.state())
.cell(TYPE, g.type())
.cell(PACKETS, g.packets())
.cell(BYTES, g.bytes())
.cell(BUCKETS, g.buckets().buckets());
}
示例15: populateRow
import org.onosproject.ui.table.TableModel; //导入方法依赖的package包/类
private void populateRow(TableModel.Row row, Host host) {
row.cell(TYPE_IID, getTypeIconId(host))
.cell(ID, host.id())
.cell(MAC, host.mac())
.cell(VLAN, host.vlan())
.cell(IPS, host.ipAddresses())
.cell(LOCATION, host.location());
}