-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Nueva clase para manejo de propiedades, animaciones para las cajas de…
… texto y algunas correcciones
- Loading branch information
1 parent
0ed1242
commit 9198f46
Showing
63 changed files
with
809 additions
and
256 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Empty file.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+145 Bytes
(110%)
build/classes/icm/sphynx/ui/components/metro/UIButton.class
Binary file not shown.
Binary file modified
BIN
+68 Bytes
(100%)
build/classes/icm/sphynx/ui/components/metro/UICheckBox.class
Binary file not shown.
Binary file modified
BIN
+814 Bytes
(120%)
build/classes/icm/sphynx/ui/components/metro/UIComboBox.class
Binary file not shown.
Binary file modified
BIN
+72 Bytes
(110%)
build/classes/icm/sphynx/ui/components/metro/UILabel.class
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+73 Bytes
(110%)
build/classes/icm/sphynx/ui/components/metro/UIMenuBar.class
Binary file not shown.
Binary file modified
BIN
+85 Bytes
(100%)
build/classes/icm/sphynx/ui/components/metro/UIMenuItem.class
Binary file not shown.
Binary file modified
BIN
+73 Bytes
(100%)
build/classes/icm/sphynx/ui/components/metro/UIOptionPane$1.class
Binary file not shown.
Binary file modified
BIN
+73 Bytes
(100%)
build/classes/icm/sphynx/ui/components/metro/UIOptionPane$2.class
Binary file not shown.
Binary file modified
BIN
+73 Bytes
(100%)
build/classes/icm/sphynx/ui/components/metro/UIOptionPane$3.class
Binary file not shown.
Binary file modified
BIN
+73 Bytes
(100%)
build/classes/icm/sphynx/ui/components/metro/UIOptionPane$4.class
Binary file not shown.
Binary file modified
BIN
+86 Bytes
(100%)
build/classes/icm/sphynx/ui/components/metro/UIOptionPane.class
Binary file not shown.
Binary file modified
BIN
+89 Bytes
(110%)
build/classes/icm/sphynx/ui/components/metro/UIPanel.class
Binary file not shown.
Binary file modified
BIN
-536 Bytes
(75%)
build/classes/icm/sphynx/ui/components/metro/UIPasswordField$1.class
Binary file not shown.
Binary file modified
BIN
-138 Bytes
(90%)
build/classes/icm/sphynx/ui/components/metro/UIPasswordField$2.class
Binary file not shown.
Binary file modified
BIN
+3.57 KB
(160%)
build/classes/icm/sphynx/ui/components/metro/UIPasswordField.class
Binary file not shown.
Binary file modified
BIN
+72 Bytes
(110%)
build/classes/icm/sphynx/ui/components/metro/UIProgressBar.class
Binary file not shown.
Binary file modified
BIN
+68 Bytes
(100%)
build/classes/icm/sphynx/ui/components/metro/UIRadioButton.class
Binary file not shown.
Binary file modified
BIN
+168 Bytes
(100%)
build/classes/icm/sphynx/ui/components/metro/UIScrollBar.class
Binary file not shown.
Binary file modified
BIN
+90 Bytes
(100%)
build/classes/icm/sphynx/ui/components/metro/UISlider.class
Binary file not shown.
Binary file modified
BIN
+143 Bytes
(100%)
build/classes/icm/sphynx/ui/components/metro/UITabbedPane.class
Binary file not shown.
Binary file modified
BIN
+77 Bytes
(100%)
build/classes/icm/sphynx/ui/components/metro/UITable.class
Binary file not shown.
Binary file modified
BIN
+69 Bytes
(100%)
build/classes/icm/sphynx/ui/components/metro/UITableHeader.class
Binary file not shown.
Binary file modified
BIN
+1.21 KB
(150%)
build/classes/icm/sphynx/ui/components/metro/UITextArea.class
Binary file not shown.
Binary file modified
BIN
+65 Bytes
(100%)
build/classes/icm/sphynx/ui/components/metro/UITextField$1.class
Binary file not shown.
Binary file modified
BIN
-146 Bytes
(89%)
build/classes/icm/sphynx/ui/components/metro/UITextField$2.class
Binary file not shown.
Binary file modified
BIN
+4.94 KB
(190%)
build/classes/icm/sphynx/ui/components/metro/UITextField.class
Binary file not shown.
Binary file modified
BIN
+918 Bytes
(130%)
build/classes/icm/sphynx/ui/components/metro/UITools.class
Binary file not shown.
Binary file modified
BIN
+72 Bytes
(100%)
build/classes/icm/sphynx/ui/tools/ToolsCellRendererTable.class
Binary file not shown.
Binary file modified
BIN
+75 Bytes
(100%)
build/classes/icm/sphynx/ui/tools/ToolsHeaderCellRendererTable.class
Binary file not shown.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
package icm.sphynx.ui.components.metro; | ||
|
||
import javax.swing.UIManager; | ||
|
||
/** | ||
* Agrega propiedades a los componentes que lo soportan | ||
* @author israel-icm | ||
*/ | ||
public class MetroUIComponent { | ||
private static final String TEXT_FIELD = "MetroTextField"; | ||
private static final String PASSWORD_FIELD = "MetroPasswordField"; | ||
|
||
private static final String TEXT_FIELD_PROPERTY_PLACEHOLDER = "placeholder"; | ||
private static final String TEXT_FIELD_PROPERTY_ICON = "icon"; | ||
public static final String ICON_SEARCH = "search"; | ||
|
||
/** | ||
* Agrega el ícono predeterminado a un textfield | ||
* @param nameComponent Nombre del componente al que se aplicará la propiedad | ||
* @param value Valor de la propiedad (Ej: MetroUIConfigComponent.ICON_SEARCH) | ||
* @example MetroUIConfigComponent.setPropertyTextField("buscar", TEXT_FIELD_PROPERTY_PLACEHOLDER, "Buscar..."); | ||
*/ | ||
public static void setTextFieldIcon(String nameComponent, String value) { | ||
UIManager.put(TEXT_FIELD + "." + nameComponent + "." + TEXT_FIELD_PROPERTY_ICON, value); | ||
} | ||
/** | ||
* Agrega el placeholder a un textfield en específico | ||
* @param nameComponent Nombre del componente al que se aplicará la propiedad | ||
* @param value Texto que se mostrará en la caja de texto | ||
* @example MetroUIConfigComponent.setPropertyTextField("buscar", TEXT_FIELD_PROPERTY_PLACEHOLDER, "Buscar..."); | ||
*/ | ||
public static void setTextFieldPlaceholder(String nameComponent, String value) { | ||
UIManager.put(TEXT_FIELD + "." + nameComponent + "." + TEXT_FIELD_PROPERTY_PLACEHOLDER, value); | ||
} | ||
/** | ||
* Agrega el placeholder a un passwordField en específico | ||
* @param nameComponent Nombre del componente al que se aplicará la propiedad | ||
* @param value Texto que se mostrará en la caja de texto | ||
* @example MetroUIConfigComponent.setPropertyTextField("buscar", TEXT_FIELD_PROPERTY_PLACEHOLDER, "Buscar..."); | ||
*/ | ||
public static void setPasswordFieldPlaceholder(String nameComponent, String value) { | ||
UIManager.put(PASSWORD_FIELD + "." + nameComponent + "." + TEXT_FIELD_PROPERTY_PLACEHOLDER, value); | ||
} | ||
/** | ||
* Retorna el valor de la propiedad icon | ||
* @param nameComponent | ||
* @return | ||
*/ | ||
public static String getPropertyTextFieldIcon(String nameComponent) { | ||
return UIManager.getString(TEXT_FIELD + "." + nameComponent + "." + TEXT_FIELD_PROPERTY_ICON); | ||
} | ||
/** | ||
* Retorna el valor de la propiedad placeholder | ||
* @param nameComponent | ||
* @return | ||
*/ | ||
public static String getPropertyTextFieldPlaceholder(String nameComponent) { | ||
return UIManager.getString(TEXT_FIELD + "." + nameComponent + "." + TEXT_FIELD_PROPERTY_PLACEHOLDER); | ||
} | ||
/** | ||
* Retorna el valor de la propiedad placeholder | ||
* @param nameComponent | ||
* @return | ||
*/ | ||
public static String getPropertyPasswordFieldPlaceholder(String nameComponent) { | ||
return UIManager.getString(PASSWORD_FIELD + "." + nameComponent + "." + TEXT_FIELD_PROPERTY_PLACEHOLDER); | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.