|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--CrearModuloPV
Esta clase permite añadir nuevos paneles fotovoltaicos a la base de datos.
Inner classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
Inner classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock |
Field Summary | |
private java.awt.MenuItem |
addMenu
|
private Fotorred |
appletPointer
|
private java.awt.Label[] |
campos
|
private java.util.Vector |
campos_card1
|
private java.util.Vector |
campos_card2
|
private java.util.Vector |
campos_card3
|
private java.awt.TextField[] |
campos_data
|
private java.lang.String[] |
campos_nombres
|
private java.util.Vector |
campos_vip
|
private java.awt.Panel |
card_panel
|
private CheckNewModule |
confirmarDatos
|
private int |
controlCabecera
|
private java.awt.CardLayout |
currentLayout
|
private static float |
DUMMY_FLOAT
|
private static int |
DUMMY_INT
|
private java.util.Enumeration |
enum1
|
private java.util.Enumeration |
enum2
|
private java.util.Enumeration |
enum3
|
private java.util.Enumeration |
enumvip
|
private boolean |
errores
|
private java.awt.MenuItem |
exitMenu
|
private float[] |
float_data
|
private java.awt.MenuItem |
infoMenu
|
private int[] |
int_data
|
private MenuFrame |
menuPointer
|
private java.awt.Button |
next
|
private java.lang.String |
oblig
|
private java.awt.Panel |
panel_1
|
private java.awt.Panel |
panel_2
|
private java.awt.Panel |
panel_3
|
private java.awt.Button |
prev
|
private java.awt.Panel |
south
|
private java.lang.String[] |
string_data
|
Fields inherited from class java.awt.Frame |
base, CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, frameSerializedDataVersion, HAND_CURSOR, icon, ICONIFIED, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, nameCounter, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, serialVersionUID, state, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR, weakThis |
Fields inherited from class java.awt.Window |
active, dbg, focusMgr, inputContext, inputContextLock, OPENED, ownedWindowList, warningString, windowListener, windowSerializedDataVersion |
Fields inherited from class java.awt.Container |
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads |
Fields inherited from class java.awt.Component |
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
CrearModuloPV(MenuFrame menus,
Fotorred mainWin)
Constructor: |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
Selecciona el grupo de datos a definir, añade un nuevo panel a la base de datos y muestra ventanas de ayuda. |
void |
add_nuevo()
Crea un nuevo panel fotovoltaico y lo añade a la base de datos. |
private java.lang.String |
check_dummy_float(float valor)
Evita mostrar en pantalla los valores de control que indican campos vacíos o errores. |
private java.lang.String |
check_dummy_int(int valor)
Evita mostrar en pantalla los valores de control que indican campos vacíos o errores. |
private void |
clearTextFields()
Borra la información introducida por el usuario en los cuadros de texto y vuelve a marcar los campos de relleno obligatorio. |
private void |
crear_nuevo()
Inicia el proceso de creación de un nuevo panel con las características proporcionadas por el usuario. |
private float |
get_float(java.lang.String text_value,
java.awt.TextField casilla)
Obtiene un valor de tipo float a partir de un String. |
private int |
get_int(java.lang.String text_value,
java.awt.TextField casilla)
Obtiene un valor de tipo int a partir de un String. |
private void |
init()
Crea los componentes que forman el interfase gráfico y establece el "layout". |
private void |
marcar_camposVIP()
Identifica los campos que el usuario debe rellenar obligatoriamente. |
void |
paint(java.awt.Graphics g)
|
private float |
parse_float(java.util.Enumeration enum)
Lee el siguiente TextField para obtener datos en formato float. |
private int |
parse_int(java.util.Enumeration enum)
Lee el siguiente TextField para obtener datos en formato int. |
private java.lang.String |
parse_String(java.util.Enumeration enum)
Lee el siguiente TextField para obtener datos en formato String. |
java.lang.String |
prepare_final_data()
Organiza la información que se muestra al usuario antes de crear un nuevo panel y añadirlo a la base de datos. |
Methods inherited from class java.awt.Frame |
|
Methods inherited from class java.awt.Window |
addOwnedWindow, addWindowListener, adjustListeningChildren, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postWindowEvent, preProcessKeyEvent, processEvent, processWindowEvent, removeOwnedWindow, removeWindowListener, resetGC, setCursor, setFocusOwner, setWarningString, show, toBack, toFront, transferFocus |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, numListening, paintComponents, paintHeavyweightComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFont, setLayout, update, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
private Fotorred appletPointer
private java.awt.MenuItem exitMenu
private java.awt.MenuItem addMenu
private java.awt.MenuItem infoMenu
private java.lang.String[] string_data
private float[] float_data
private int[] int_data
private java.awt.Label[] campos
private java.awt.TextField[] campos_data
private java.lang.String[] campos_nombres
private java.util.Vector campos_card1
private java.util.Vector campos_card2
private java.util.Vector campos_card3
private java.util.Vector campos_vip
private java.util.Enumeration enum1
private java.util.Enumeration enum2
private java.util.Enumeration enum3
private java.util.Enumeration enumvip
private java.awt.CardLayout currentLayout
private java.awt.Panel card_panel
private java.awt.Panel panel_1
private java.awt.Panel panel_2
private java.awt.Panel panel_3
private java.awt.Panel south
private java.awt.Button prev
private java.awt.Button next
private int controlCabecera
private MenuFrame menuPointer
private CheckNewModule confirmarDatos
private static final float DUMMY_FLOAT
private static final int DUMMY_INT
private boolean errores
private java.lang.String oblig
Constructor Detail |
public CrearModuloPV(MenuFrame menus, Fotorred mainWin)
Method Detail |
private void init()
private void marcar_camposVIP()
public void paint(java.awt.Graphics g)
paint
in class java.awt.Container
g
- Entorno gráfico donde mostrar los datos.private void crear_nuevo()
public void add_nuevo()
private void clearTextFields()
public java.lang.String prepare_final_data()
String
- Tabla con todos los datos que se utilizarán para crear el nuevo panel.private java.lang.String check_dummy_float(float valor)
float
- Valor Número decimal que se desea comprobar.private java.lang.String check_dummy_int(int valor)
int
- Valor Número entero que se desea comprobar.private java.lang.String parse_String(java.util.Enumeration enum)
Enumeration
- enum Lista que contiene el TextField de donde leer datos.private float parse_float(java.util.Enumeration enum)
Enumeration
- enum Lista que contiene el TextField de donde leer datos.private int parse_int(java.util.Enumeration enum)
Enumeration
- enum Lista que contiene el TextField de donde leer datos.private float get_float(java.lang.String text_value, java.awt.TextField casilla)
String
- text_value String que contiene los datos.TextField
- casilla Campo de texto de donde se han obtenido los datos.private int get_int(java.lang.String text_value, java.awt.TextField casilla)
String
- text_value String que contiene los datos.TextField
- casilla Campo de texto de donde se han obtenido los datos.public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |