Class DivIpAddr
- java.lang.Object
-
- com.vaadin.flow.component.Component
-
- com.vaadin.flow.component.HtmlComponent
-
- com.vaadin.flow.component.HtmlContainer
-
- com.vaadin.flow.component.html.Div
-
- com.neotropic.kuwaiba.modules.commercial.ipam.visual.DivIpAddr
-
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.ClickNotifier<com.vaadin.flow.component.html.Div>
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.HasComponents
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasEnabled
,com.vaadin.flow.component.HasSize
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.component.HasText
,Serializable
public class DivIpAddr extends com.vaadin.flow.component.html.Div
A graphical square used to contains numbers used in IPAM to show al the numbers of the last segment, design to be used also with evlans/cvlans- Author:
- Adrian Martinez Molina <adrian.martinez@kuwaiba.org>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
IS_MANGEMENT
The busy style name for the ip addressstatic String
STATE_BUSY
The busy style name for the ip addressstatic String
STATE_FREE
The free style name for the ip addressstatic String
STATE_NOT_CREATED
Possible IP address in a subnet but not yet created in kuwaibastatic String
STATE_RESERVED
The busy style name for the ip address
-
Constructor Summary
Constructors Constructor Description DivIpAddr(SubnetDetail subnetDetail, String ipAddrId, String ipAddr, String state)
Tags related to the ip address to be shown
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClassName()
String
getIpAddr()
String
getIpAddrId()
String
getMask()
String
getNetworkIpAddr()
String
getOldState()
String
getState()
String
getSubnetId()
String
getSubnetSegment()
void
setIpAddr(String ipAddr)
void
setIpAddrId(String ipAddrId)
void
setNetworkIpAddr(String networkIpAddr)
void
setOldState(String oldState)
void
setState(String state)
Removes the old state from the div amd sets the new onevoid
setSubnetId(String subnetId)
-
Methods inherited from class com.vaadin.flow.component.Component
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.ClickNotifier
addClickListener, addClickShortcut
-
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, addComponentAsFirst, addComponentAtIndex, remove, removeAll
-
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, setHeight, setHeightFull, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidthFull
-
-
-
-
Field Detail
-
STATE_FREE
public static final String STATE_FREE
The free style name for the ip address- See Also:
- Constant Field Values
-
STATE_BUSY
public static final String STATE_BUSY
The busy style name for the ip address- See Also:
- Constant Field Values
-
STATE_RESERVED
public static final String STATE_RESERVED
The busy style name for the ip address- See Also:
- Constant Field Values
-
IS_MANGEMENT
public static final String IS_MANGEMENT
The busy style name for the ip address- See Also:
- Constant Field Values
-
STATE_NOT_CREATED
public static final String STATE_NOT_CREATED
Possible IP address in a subnet but not yet created in kuwaiba- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DivIpAddr
public DivIpAddr(SubnetDetail subnetDetail, String ipAddrId, String ipAddr, String state)
Tags related to the ip address to be shown
-
-
Method Detail
-
getSubnetId
public String getSubnetId()
-
setSubnetId
public void setSubnetId(String subnetId)
-
getNetworkIpAddr
public String getNetworkIpAddr()
-
setNetworkIpAddr
public void setNetworkIpAddr(String networkIpAddr)
-
getIpAddrId
public String getIpAddrId()
-
setIpAddrId
public void setIpAddrId(String ipAddrId)
-
getIpAddr
public String getIpAddr()
-
setIpAddr
public void setIpAddr(String ipAddr)
-
getState
public String getState()
-
getOldState
public String getOldState()
-
setOldState
public void setOldState(String oldState)
-
getSubnetSegment
public String getSubnetSegment()
-
getMask
public String getMask()
-
getClassName
public String getClassName()
-
setState
public void setState(String state)
Removes the old state from the div amd sets the new one- Parameters:
state
- the style for the div
-
-