Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cours-java-librarymanager-simplegui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emmanuel Bruno
cours-java-librarymanager-simplegui
Commits
91504211
Commit
91504211
authored
10 years ago
by
Emmanuel Bruno
Browse files
Options
Downloads
Patches
Plain Diff
ajoute la recherche d'un auteur.
parent
d3a315a7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pom.xml
+4
-5
4 additions, 5 deletions
pom.xml
src/main/java/fr/univtln/bruno/d14/simpleihm/ModeleBibliotheque.java
+7
-3
7 additions, 3 deletions
...va/fr/univtln/bruno/d14/simpleihm/ModeleBibliotheque.java
with
11 additions
and
8 deletions
pom.xml
+
4
−
5
View file @
91504211
...
...
@@ -71,5 +71,4 @@
</build>
</project>
This diff is collapsed.
Click to expand it.
src/main/java/fr/univtln/bruno/d14/simpleihm/ModeleBibliotheque.java
+
7
−
3
View file @
91504211
package
fr.univtln.bruno.d14.simpleihm
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Observable
;
import
java.util.*
;
/**
* Created by bruno on 03/10/14.
...
...
@@ -12,6 +10,12 @@ public class ModeleBibliotheque extends Observable {
public
enum
ModeleBibliothequeEvent
{
AUTEUR
,
DOCUMENT
,
MATERIEL
}
public
Auteur
getAuteur
(
final
int
ID
)
{
for
(
Auteur
auteur:
auteurs
)
if
(
auteur
.
ID
==
ID
)
return
auteur
;
return
null
;
}
public
void
ajouterAuteur
(
Auteur
auteur
)
{
auteurs
.
add
(
auteur
);
//On previent les observateurs du changement
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment