2017-06-16 23:35:56 +02:00
/ * *
2017-10-15 13:37:45 +02:00
* cemu_UI
*
* Copyright 2017 < @Seil0 >
*
* This program is free software ; you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 3 of the License , or
* ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
* along with this program ; if not , write to the Free Software
* Foundation , Inc . , 51 Franklin Street , Fifth Floor , Boston ,
* MA 02110 - 1301 , USA .
2017-06-16 23:35:56 +02:00
* /
2017-10-15 13:37:45 +02:00
2017-11-13 16:44:39 +01:00
package com.cemu_UI.datatypes ;
2017-04-06 12:00:36 +02:00
import com.jfoenix.controls.JFXButton ;
import javafx.beans.property.SimpleObjectProperty ;
import javafx.beans.property.SimpleStringProperty ;
import javafx.beans.property.StringProperty ;
import javafx.scene.control.Label ;
2017-10-14 15:42:13 +02:00
import javafx.scene.image.ImageView ;
2017-04-06 12:00:36 +02:00
import javafx.scene.layout.VBox ;
2017-06-16 23:35:56 +02:00
public class UIROMDataType {
2017-04-06 12:00:36 +02:00
private final SimpleObjectProperty < VBox > vBox = new SimpleObjectProperty < > ( ) ;
private final SimpleObjectProperty < Label > label = new SimpleObjectProperty < > ( ) ;
private final SimpleObjectProperty < JFXButton > button = new SimpleObjectProperty < > ( ) ;
2017-10-14 15:42:13 +02:00
private final SimpleObjectProperty < ImageView > imageView = new SimpleObjectProperty < > ( ) ;
2017-04-06 12:00:36 +02:00
private final StringProperty titleID = new SimpleStringProperty ( ) ;
private final StringProperty romPath = new SimpleStringProperty ( ) ;
2017-10-15 13:37:45 +02:00
/ * *
* Data type used for UI ROM elements all uiROMElemts are of this data type
* /
2017-10-14 15:42:13 +02:00
public UIROMDataType ( final VBox vBox , final Label label , final JFXButton button , final ImageView imageView , final String titleID , final String romPath ) {
2017-04-06 12:00:36 +02:00
this . vBox . set ( vBox ) ;
this . label . set ( label ) ;
this . button . set ( button ) ;
2017-10-14 15:42:13 +02:00
this . imageView . set ( imageView ) ;
2017-04-06 12:00:36 +02:00
this . titleID . set ( titleID ) ;
2017-10-14 15:42:13 +02:00
this . romPath . set ( romPath ) ;
2017-04-06 12:00:36 +02:00
}
public SimpleObjectProperty < VBox > vBoxProperty ( ) {
return vBox ;
}
public SimpleObjectProperty < Label > labelProperty ( ) {
return label ;
}
public SimpleObjectProperty < JFXButton > buttonProperty ( ) {
return button ;
}
2017-10-14 15:42:13 +02:00
public SimpleObjectProperty < ImageView > imageViewProperty ( ) {
return imageView ;
}
2017-04-06 12:00:36 +02:00
public StringProperty titleIDProperty ( ) {
return titleID ;
}
public StringProperty romPathProperty ( ) {
return romPath ;
}
public final VBox getVBox ( ) {
return vBoxProperty ( ) . get ( ) ;
}
public final Label getLabel ( ) {
return labelProperty ( ) . get ( ) ;
}
public final JFXButton getButton ( ) {
return buttonProperty ( ) . get ( ) ;
}
2017-10-14 15:42:13 +02:00
public final ImageView getImageView ( ) {
return imageViewProperty ( ) . get ( ) ;
}
2017-04-06 12:00:36 +02:00
public final String getTitleID ( ) {
return titleIDProperty ( ) . get ( ) ;
}
public final String getRomPath ( ) {
return romPathProperty ( ) . get ( ) ;
}
public final void setVBox ( VBox vBox ) {
vBoxProperty ( ) . set ( vBox ) ;
}
public final void setLabel ( Label label ) {
labelProperty ( ) . set ( label ) ;
}
public final void setButton ( JFXButton button ) {
buttonProperty ( ) . set ( button ) ;
}
2017-10-14 15:42:13 +02:00
public final void setImageView ( ImageView imageView ) {
imageViewProperty ( ) . set ( imageView ) ;
}
2017-04-06 12:00:36 +02:00
public final void setTitleID ( String titleID ) {
titleIDProperty ( ) . set ( titleID ) ;
}
public final void setRomPath ( String romPath ) {
romPathProperty ( ) . set ( romPath ) ;
}
}