class HelpPanel(VerticalPanel):
def __init__(self):
VerticalPanel.__init__(self)
-
def refresh(self):
pass
class PlanetLabHelpPanel(HelpPanel):
def __init__(self):
HelpPanel.__init__(self)
- self.add(HTML("This is the PlanetLab help panel"))
+ m = "<div class='infoProse'>Steps to set up your slice:"
+ m += "<ol><li>Use the <b>Nodes</b> tab to select the nodes "
+ m += "on which your slice will run."
+ m += "<li>Use the <b>Slivers</b> tab to configure sliver attributes."
+ m += "(Note that typical users have insufficient permission to "
+ m += "set most attributes.)"
+ m += "<li>Under the <b>Submit</b> tab, click the <i>Apply</i> button "
+ m += "to submit your changes, or the <i>Reset</i> button to discard "
+ m += "them.</ol></p></div>"
+ self.add(HTML(m))
class VINIHelpPanel(HelpPanel):
def __init__(self):
HelpPanel.__init__(self)
- self.add(HTML("This is the VINI help panel"))
+ m = "<div class='infoProse'>Steps to set up your slice:"
+ m += "<ol><li>Use the <b>Nodes</b> tab to select the nodes "
+ m += "on which your slice will run."
+ m += "<li>Use the <b>Links</b> tab to create a virtual topology for "
+ m += "your slice, if desired. The virtual topology will be "
+ m += "computed automatically; virtual links can only be set up "
+ m += "between nodes that are adjacent in the network, and a virtual "
+ m += "link will be added between each pair of adjacent nodes. "
+ m += "You can remove any undesired virtual links or change "
+ m += "the bandwidth reserved to each link. "
+ m += "<li>Use the <b>Slivers</b> tab to configure sliver attributes."
+ m += "(Note that typical users have insufficient permission to "
+ m += "set most attributes.)"
+ m += "<li>Under the <b>Submit</b> tab, click the <i>Apply</i> button "
+ m += "to submit your changes, or the <i>Reset</i> button to discard "
+ m += "them.</ol></p></div>"
+ self.add(HTML(m))
VerticalPanel.__init__(self)
self.sfadata = sfadata
self.defaultbw = 1000
+ self.setStyleName("ks-layouts")
self.refresh()
def refresh(self):
DockPanel.__init__(self)
self.sfadata = sfadata
- self.setSize("100%", "100%")
self.setHorizontalAlignment(HasAlignment.ALIGN_CENTER)
self.setVerticalAlignment(HasAlignment.ALIGN_MIDDLE)
self.availableRegex = None
self.add(rightpanel, DockPanel.EAST)
self.add(vertpanel, DockPanel.CENTER)
+ self.setStyleName("ks-layouts")
self.refresh()
def refresh(self):
self.initWidget(self.tabs)
def init():
- return SinkInfo("PLC", "Specify PlanetLab Central Resources", PLC)
+ return SinkInfo("PlanetLab", "Specify PlanetLab Central Resources", PLC)
PopupPanel.__init__(self, True)
contents = HTML("<pre>" + record + "</pre>")
self.setWidget(contents)
-
self.setStyleName("ks-popups-Popup")
class SfaItem(TreeItem):
def __init__(self, sfadata):
VerticalPanel.__init__(self)
self.sfadata = sfadata
+ self.setStyleName("ks-layouts")
self.refresh()
def refresh(self):
self.add(hp1)
self.add(hp2)
+ self.setStyleName("ks-layouts")
def refresh(self):
pass
}
.gwt-TabBar .gwt-TabBarItem {
- border-top: 1px solid #C3D9FF;
+ background-color: #d2d8e0;
+ border-top: 1px solid #87B3FF;
+ border-left: 1px solid #87B3FF;
+ border-right: 1px solid #87B3FF;
border-bottom: 1px solid #87B3FF;
padding: 2px;
+ padding-left: 8px;
+ padding-right: 8px;
+ margin-left: 1px;
+ margin-right: 1px;
cursor: pointer;
cursor: hand;
}
.gwt-TabBar .gwt-TabBarItem-selected {
- font-weight: bold;
background-color: #E8EEF7;
+ font-weight: bold;
border-top: 1px solid #87B3FF;
border-left: 1px solid #87B3FF;
border-right: 1px solid #87B3FF;
border-bottom: 1px solid #E8EEF7;
padding: 2px;
+ padding-left: 8px;
+ padding-right: 8px;
+ margin-left: 1px;
+ margin-right: 1px;
cursor: default;
}
}
.gwt-Tree {
+ padding: 8px;
}
.gwt-Tree .gwt-TreeItem {
}
.ks-List .ks-SinkItem {
+ background-color: #d2d8e0;
width: 100%;
padding: 0.3em;
- padding-right: 16px;
+ padding-right: 32px;
cursor: pointer;
cursor: hand;
}
}
.ks-layouts {
- margin: 8px;
+ padding: 8px;
+ width: 100%;
+ height: 100%;
}
.ks-layouts-Label {
}
.infoProse {
- margin: 8px;
+ padding: 8px;
}
/******************************************************